I ma trying to capture blow for a small game, I am able to do it correctly under Windows, but it doesn’t work fine on the iPhone.
I analyse a part recording buffer each frames. Values increasing correctly on Windows, but on the iPhone values seems to be randoms, and blowing on the microphone don’t seems perturbate values.
I use the SDK version 2.1.
My initialisation code (take from the record sample)
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.numchannels = 1;
exinfo.format = FMOD_SOUND_FORMAT_PCM16;
exinfo.defaultfrequency = 44100;
exinfo.length = exinfo.defaultfrequency * sizeof(short) * exinfo.numchannels * 5;
result = soundManager->mSystem->createSound(NULL, FMOD_2D | FMOD_SOFTWARE | FMOD_OPENUSER, &exinfo, &mSound);
- flamaros asked 10 years ago
Have you tried simply playing back the recorded sound of you blowing into the mic on the iPhone? Does it sound as you would expect? This will rule out any problems with the recording, which leads onto possible problems with the code you are using to interpret the values.
Please login first to submit.