使用 audioqueue 同时播放两个 m4a 声音

发布于 2024-09-16 18:16:14 字数 342 浏览 1 评论 0原文

我需要为我的应用程序混合两个同时循环的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们的影子 2024-09-23 18:16:14

目前的一台设备,似乎有硬件支持一次只能播放一个压缩音频文件,并且我不确定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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文