I'm coding an app and I need to not interrupt any music the user is playing while the app is recording through the mic.
However, if I use kAudioSessionProperty_OverrideAudioRoute with kAudioSessionOverrideAudioRoute_Speaker for my audio session properties, audio is re-routed to the external speaker even if the headphones are plugged in. If I use kAudioSessionProperty_OverrideCategoryDefaultToSpeaker, background music is not permitted to play even if I'm using kAudioSessionProperty_OverrideCategoryMixWithOthers.
Any ideas?