I need to play and record at the same time. The problem is that the reproduced and recorded sound must be different. Played sound_1 is constantly sent through the headphone jack to the connected device, the device analyzes this sound_1 and sends back another sound_2 through the headphone jack. I get this sound_2, but when I try to record it, I get a mixture of sound_1 and sound_2. Is there a way to play / record separately, or do I need some kind of filter for incoming sound_2? I tried to play sound using AVAudioPlayer and record using AudioQueue, the session was PlayAndRecord.
Found some similar topic: Playing and recording audio simultaneously with the headset jack jack in iOS?
but there was no constructive answer either.
source
share