简体   繁体   中英

Exclusive access to AudioUnit in iOS

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM