I am developing an iPhone application which requires to play and record Audio(I am doing this with help of AudioQueues) simultaneously. I am using headset jack pin with mic for recording and playing and the playing sound is a wav file of 5kHz.
The problem here is it's recording the sound that is playing out through output AudioQueues as well as the sound that is coming into headset mic. but I need to record only the sound that is coming through the headset mic.
I am unable to find the problem is with the headset jack pins(I have tested with lot off headset jack pins) or any programming settings like AudioSessions. the same is with the AVAudioPlayer and AVAudioRecorder too.
Can anyone tell the problem and some help and suggestions would very helpful. Thanks.