IOS - AudioUnitInitialize returns error code 561017449

I have an app in the App Store that uses AudioUnit to record audio.

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

What does this error code mean? I could not find it documented. Also:

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

There were several examples of this problem, but there is still no generality scheme regarding the device version and OS.

I do not include the code since I do not think it will be useful so far. The code already works on different devices. Currently, I am most interested in information about this particular error.

Thanks!

+2
source share
1 answer

This is defined in AVAudioSession.h:

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

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

+10
source

Source: https://habr.com/ru/post/1265294/


All Articles