Hello,
I have a VOIP application and it works great on iPhone 3G, iPhone 3G S, and iPod Touch.
However, it has a problem when run on iPhone 2G. The problem is that the mic is not working well.
I can hear clearly the other party's voice but my voice sounds like robot when heard by
the other party.
Below are the values of the AudioStreamBasicDescription (mDataFormat) variable created brefore and after call
to AudioQueueNewInput() function.
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 is the bufferbytes value for allocation of buffers:
bufferBytes = 320
The above values apply to iPhone 2G and iPhone 3G (haven't got the logs from 3G S and iPod).
Kindly give me some advise how to hadle this.
Do I have to change some settings for iPhone 2G?
Thanks in advance.
Regards,
Gie
Make the most of what you can do on your PC and the Web, just the way you want. Windows Live
|