I am a recent discoverer of FMOD. Firstly the API seems very complete and is well written. However I am doing some work which works outside the audible spectrum ie. >20Khz, specifically 21Khz.

I am using the iPhone/iOS sample "pitchdetection". The sample works very well but I notice the application stops sampling above 20Khz.


define OUTPUTRATE 48000

define SPECTRUMSIZE 8192

define SPECTRUMRANGE ((float)OUTPUTRATE / 2.0f) /* 0 to nyquist */



As you can see from the above defines, the Sample rate should be 24 000 hz.

I was wondering if anyone could point me to a way to configure FMOD to sample above 20 000 hz. Given that the sample is provided as part of the SDK. I have decided not to include the whole source code.

Thanks for your time in advance.

  • You must to post comments


Seems I solved my own question with some playing around with the source code.

As an FYI, I changed the following line in the Pitch Detection Sample:

[code:39696kdk]result = system->setSoftwareFormat(OUTPUTRATE, FMOD_SOUND_FORMAT_PCM16, 1, 0, FMOD_DSP_RESAMPLER_LINEAR);[/code:39696kdk]

To the following line:

[code:39696kdk]result = system->setSoftwareFormat(OUTPUTRATE, FMOD_SOUND_FORMAT_PCM32, 1, 0, FMOD_DSP_RESAMPLER_LINEAR);[/code:39696kdk]

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.