When recording audio with audio playback, AVAudioSession from a music application or other files stops. This is described in the audio documentation:
AVAudioSessionCategoryRecord
To record sound; this category disables audio playback.
Is there a way to change this behavior and do one of the following?
1) Continue playing the sound of other applications and let the phone record the sound being played.
2) Resume the sound of other applications after completing a short recording. Notification applications can respond when sound interruptions begin or end. Is there anything specific that needs to be done for other applications to receive these notifications?
source share