AVAudioEngine crashes when I unplug headphones during a call

蓝咒 提交于 2019-12-04 00:13:49
Arthur Gevorkyan

I suspect the problem is here:
audioEngine.connect(audioTimePitch, to: mainMixer, format: mainMixer.outputFormatForBus(0))

The documentation says:

This method calls connect:to:fromBus:toBus:format: using bus 0 for the source audio node, and bus 0 for the destination audio node, except in the case of a destination which is a mixer, in which case the destination is the mixer’s nextAvailableInputBus.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!