aurioTouch sample app's audio playback/thru not working?

吃可爱长大的小学妹 提交于 2019-12-10 10:44:14

问题


According to Apple's description, the aurioTouch sample app is suppose to "get the audio input and copy it to the output", which I think means that the app will playback/thru any sound the iPhone's mike picks up through the iPhone's speakers.

When I loaded the app onto my iPhone (updated to 2.2), however, the playthru feature does not seem to work at all. The on-screen oscilliscope reponds as expected to voices and sounds, so the audio input half of the app is clearly working.

Yes, I have tried toggling the app's "MUTE" button, and yes, I made sure the iPhone's "ringer/silent" switch is not set to silent, and that the volume is not set to zero. What am I missing?


回答1:


The issue is an incorrectly written DC filter in the helper code.

Comment out lines 210 and 211 of the AppDelegate code, which invoke the DC filter, and you'll be up and running immediately.



来源:https://stackoverflow.com/questions/312089/auriotouch-sample-apps-audio-playback-thru-not-working

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