udioUnitInitialize返回错误代码56101744

udioUnitInitialize返回错误代码56101744

本文介绍了iOS-AudioUnitInitialize返回错误代码561017449的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在App Store中有一个应用程序,该应用程序使用AudioUnit录制音频.

I have an app in the App Store which uses AudioUnit for recording audio.

大约每周一次,我发现对于一些狂热的用户,对 AudioUnitInitialize 的调用失败,错误代码561017449也为0x21707269或"irp!".

About once a week or so I am seeing that for some users in the wild the call to AudioUnitInitialize fails with the error code 561017449 which is also 0x21707269 or "irp!".

此错误代码是什么意思?我一直找不到它的记录.另外:

What does this error code mean? I've been unable to find it documented. Also:

~$ macerror 561017449
Unknown error (561017449) at /usr/bin/macerror5.16 line 40, <DATA> line 1.

几乎没有这个问题的实例,但是到目前为止,就设备和操作系统版本而言,似乎没有任何共通性的模式.

There have been few instances of this issue, but so far there appears to be no pattern of commonality as far as device and OS version goes.

我不包含代码,因为我认为这还没有帮助.该代码已经在各种设备上运行.目前,我最有兴趣了解有关此特定错误的详细信息.

I'm not including code as I don't think that will be helpful just yet. The code is working on variety of devices already. At this time I'm most interested in learning details about this specific error.

谢谢!

推荐答案

这是在AVAudioSession.h中定义的:

This is defined in AVAudioSession.h:

AVAudioSessionErrorInsufficientPriority = '!pri', /* 0x21707269, 561017449 */

,并被描述为由于其他应用(电话等)正在控制该应用,因此该应用无法设置音频类别."

and is described as "The app was not allowed to set the audio category because another app (Phone, etc.) is controlling it."

这篇关于iOS-AudioUnitInitialize返回错误代码561017449的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:43