0

I was thinking is it possible to get exclusive access to AudioUnit record (end possibly playback) device, to assure that any other proccess will not gain access to it while my is working (eventually even in background)?

Any advice would be helpful.

Thank you in advance!

Tomasz Łoś
  • 79
  • 2
  • 10

1 Answers1

1

Your app can get exclusive access to an audio session when in the foreground. When another app comes to the foreground, it can do the same and thus kill your apps access to audio. The Phone app can also take control of audio by interrupting your app. No way to prevent this on stock OS iOS devices.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153
  • Could you tell me how to monitor which application is trying to gain access to the Audio unit? Also, is the recording device given to process exclusively by default or I need to do some addidional coding for this? – Tomasz Łoś Apr 07 '13 at 03:56