views:

110

answers:

1

Hi,

In my app, I want to find/calculate the audio frequency as dynamically when i am recording an audio and no need to save, play and all. Now i am trying to do that with help of an aurioToch sample code. In that sample, inside FFTBufferManager class methods such as GrabAudioData and ComputeFFT,Here I am not able to find where they are calculating frequency value as dynamically depends on the audio sound and I spent more than 5 days.please help me.

+1  A: 

You don't need to use FFT if your audio signal is clear and pure. Just count the peaks and valleys. Or just peaks. Take that number and divide by the number of samples in your buffer, and then multiply by the sample rate. That's your frequency value.

lucius