play the sound from mic using the AUGraph

寵の児 提交于 2021-02-09 15:24:41

问题


when i'am using the AUGraph to realize playing sound from the mic,

i have a problem, in the device(iphone 3g), i can only hear from the right side of the headset,

but it is well in the simulator, i can hear from both of the side of the headset.

here are the code i use to connect the input to the output:

AUGraphConnectNodeInput(auGraph, remoteIONode, 1, remoteIONode, 0);

someone help me?

tks!


回答1:


output is double channel, input is also double channel. i find that the data from mic is single channel when it is in a device, but the data is double channel when it is in a simulation.i am puzzle! so i change the single channel data to the double channel data, the problem is solved! oh, my lady gaga, my english is so poor!



来源:https://stackoverflow.com/questions/3792525/play-the-sound-from-mic-using-the-augraph

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