简体   繁体   English

独家访问iOS中的AudioUnit

[英]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)? 我在想是否有可能获得对AudioUnit记录设备的独家访问权(可能结束播放),以确保在我工作时(最终甚至在后台)其他任何进程都不会访问它?

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. 无法在库存OS iOS设备上防止这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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