krafter / DetectingAudioFrequency

An example iPhone project to show how to detect frequency of captured microphone audio.
MIT License
123 stars 30 forks source link

How i can use this Code in swift ?? #5

Closed Arun30sep closed 7 years ago

Arun30sep commented 8 years ago

I need top two frequencies within 3 second and time between them. I really don't undertstand whats going on in the after initialising the moaudio in Viewcontroller. Just started with fft so not a complete knowledge of the concepts.

jagdeep90 commented 8 years ago

How i can use this Code in swift too ??

krafter commented 7 years ago

@Arun30sep 3 seconds = yourSampleRate*3. See the C++ functions above ViewController class - all the stuff happens in there. It starts in AudioCallback(). @jagdeep90 you can use Objective-C++ code in swift project, just not in the same file.