Hello,
Why is the captured data from built-in mic is not as clear as with headset mic? This question is specifically for iPhone 2G (since I have no problems with iPod, iPhone 3G, and iPhone 3GS).
I asked this question since my application (voip) works when headset is used. But when the built in mic is used, the other party hears it like robot.
Below are the details of the AudioStreamBasicDescription variable used.
mDataFormat.mSampleRate = 8000
mDataFormat.mChannelsPerFrame = 1
mDataFormat.mFormatID = kAudioFormatLinearPCM
mDataFormat.mFormatFlags = 12
mDataFormat.mBitsPerChannel = 16
mDataFormat.mBytesPerPacket = 2
mDataFormat.mBytesPerFrame = 2
mDataFormat.mFramesPerPacket = 1
This was the size of the buffer when AudioQueueAllocateBuffer() was called.
bufferbytes = 320
Please I really need help.
Regards, Angie
Party with Buddy! Bling out your Messenger with free winks & emoticons. Click here
|