Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CoreAudio在播放AudioServicesPlayAlertSound时产生错误_Ios_Objective C_Avfoundation_Core Audio_Avaudiosession - Fatal编程技术网

CoreAudio在播放AudioServicesPlayAlertSound时产生错误

CoreAudio在播放AudioServicesPlayAlertSound时产生错误,ios,objective-c,avfoundation,core-audio,avaudiosession,Ios,Objective C,Avfoundation,Core Audio,Avaudiosession,我目前正在开发一个持续监听的应用程序。在录音的过程中,我有时会使用 AudioServicesPlayAlertSound(...); AudioServicesPlaySystemSound(...); 我注意到,有时,当我在应用程序即将播放或播放声音/振动时,它会在控制台日志中抛出以下错误: Error -10868 接 ERROR: [0x16e19f000] >aurioc> 807: failed: '!pla' (enable 1, outf< 2 ch, 0

我目前正在开发一个持续监听的应用程序。在录音的过程中,我有时会使用

AudioServicesPlayAlertSound(...);
AudioServicesPlaySystemSound(...);
我注意到,有时,当我在应用程序即将播放或播放声音/振动时,它会在控制台日志中抛出以下错误:

Error -10868 

ERROR: [0x16e19f000] >aurioc> 807: failed: '!pla' (enable 1, outf< 2 ch, 0 Hz, Float32, non-inter> inf< 2 ch, 0 Hz, Float32, non-inter>)
我曾尝试查找这些错误,但没有实现解决方案。我注意到,当我恢复应用程序时,它不再检测音频


想法?

通常,iOS应用程序不允许从后台状态开始播放音频。尝试执行此操作时出错可能会导致应用程序的音频单元图(包括录制)停止。

是否使用可混合类别配置配置音频会话帮助?还没有测试,但提到它可能会改变观察到的行为。

我得出了相同的结论-我需要围绕这一点进行更多的测试。但是谢谢你!如果有任何其他建议,我将非常感谢您的建议!:)
Error opening capture session. OSStatus error code: 561015905