How Do I Route Audio to Speaker without using AudioSessionSetProperty?

后端 未结 4 1950
梦毁少年i
梦毁少年i 2020-11-27 02:39

As AudioSessionSetProperty may become deprecated, I\'m trying to find an code example of how to route audio to the speaker using other

4条回答
  •  难免孤独
    2020-11-27 03:11

    Foundry’s solution together with this blog by Mario Diana has also allowed me to upgrade audio session set up code deprecated in iOS 7. My old code was based on AudioBufferPlayer by Matthijs Hollemans. Remember to add the AVFoundation.framework.

提交回复
热议问题