iOS - AudioOutputUnitStop results in app freeze an

2019-06-23 19:12发布

问题:

sometimes the execution of

AudioOutputUnitStop(inputUnit)

results in the app to be freezed for about 10/15 seconds and the following console message:

WARNING:   [0x3b58918c] AURemoteIO.cpp:1225: Stop: AURemoteIO::Stop: error 0x10004003 calling TerminateOwnIOThread

Such code is handled by the Novocaine library and in particular it occurs in the [Novocaine pause] method which I invoke to stop the execution of the playback of an audio file (https://github.com/alexbw/novocaine/blob/master/Novocaine/Novocaine.m).

Any hint is really appreciated!

Thanks, DAN