novocaine

iOS - AudioOutputUnitStop results in app freeze and warning

南楼画角 提交于 2019-12-23 10:19:42
问题 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

Low latency input/output AudioQueue

旧街凉风 提交于 2019-12-09 07:13:14
问题 I have two iOS AudioQueues - one input that feeds samples directly to one output. Unfortunately, there is an echo effect that is quite noticeable :( Is it possible to do low latency audio using AudioQueues or do I really need to use AudioUnits? (I have tried the Novocaine framework that uses AudioUnits and here the latency is much smaller. I've also noticed this framework seems to use less CPU resources. Unfortunately, I was unable to use this framework in my Swift project without major