使用 AUGraph 播放麦克风的声音
当我使用AUGraph实现从麦克风播放声音时,
我遇到了一个问题,在设备(iphone 3g)中,我只能从耳机的右侧听到声音,
但在模拟器中很好,我可以从耳机的两侧听到声音。
这是我用来将输入连接到输出的代码:
AUGraphConnectNodeInput(auGraph, remoteIONode, 1, remoteIONode, 0);
有人帮助我吗?
谢了!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
输出是双通道,输入也是双通道。我发现麦克风的数据在设备中时是单通道的,但在模拟中时数据是双通道的。我很困惑!于是我把单通道数据改成双通道数据,问题就解决了!哦,我的lady gaga,我的英语太差了!
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!