且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在iOS 5中,如何使用AudioSession来确保尽管插入了耳机,但仍能通过扬声器播放音频?

更新时间:2022-03-25 23:49:43

请确保在xCode中包含AudioToolbox库.我遇到了同样的错误,因为文件已导入但未将库链接到项目.

Be sure to include the AudioToolbox lib in xCode. I had the same error because the files were imported but did not link the library to the project.

这应该摆脱您的错误.

祝你有美好的一天!