使用 audioqueue 同时播放两个 m4a 声音
我需要为我的应用程序混合两个同时循环的 m4a 声音,我遇到的唯一 100% 可靠的循环方法是使用 AudioQueue 和此方法: http://developer.apple.com/mac/library/qa/qa2009/qa1636.html
但是,当我初始化 AudioQueue 的两个实例时,我似乎只能玩一个实例。我知道sdk以前只支持一次播放一个压缩音频文件,但是随着3.0的发展,情况发生了变化,所以我想知道是否有什么我遗漏的?
I need to mix two simultaneous looping m4a sounds for my application, and the only 100% reliable loop method i have come accross is using AudioQueue with this method: http://developer.apple.com/mac/library/qa/qa2009/qa1636.html
However, when I initialize two instances of AudioQueue, I can only seem to get one instance playing. I know that the sdk used to only support playing one compressed audio file at a time, but that changed with 3.0, so I wonder if there is something I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前的一台设备,似乎有硬件支持一次只能播放一个压缩音频文件,并且我不确定m4a是否可以在软件中实时解压缩(软件解码器仅支持特定类型) )。您可以在播放混合音频循环之前解压缩第二个声音。
One current devices, there seems to be hardware support for only playing one compressed audio file at a time, and I'm not sure if m4a is de-compressible in software in real-time (there are only specific types supported by the software decoder). You might be able to decompress the second sound before playing your mixed audio loops.