osxaudiosink/osxaudiosrc and AVAudioSession Interruption
I have successfully gotten osxaudiosink / osxaudiosrc to stream rtp audio on an iOS application, but I'm having trouble when the AVAudioSession gets interrupted. When the session gets interrupted, I deactivate the audio session. When the session interruption ends, I reactive the session. When I get an audio session interruption, do I need to pause the entire osxaudiosink / osxaudiosrc pipeline? I was trying to do some researching on AudioUnits and interruption but there isn't many details out there about this. Thanks for any help you can provide.
My code is below and the success variables are always YES.