0
0

Hi,

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)

[code:1nvmb76k]
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);

[/code:1nvmb76k]

Thx.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

I’ll try that.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.