在 iPhone 上同时播放多首 MP3 歌曲

发布于 2024-08-20 09:53:13 字数 358 浏览 3 评论 0原文

我想在 iPhone 上做一个混音表。我有一首歌曲的不同曲目,我想在 iPhone 上同时播放它们。这些歌曲是 MP3 文件,我希望能够同时播放最多 15 首曲目,并更改音量、静音某些曲目、在整首歌曲中导航等。Apple

MultichannelMixer 示例似乎完全符合我的要求,但 MP3 文件需要播放前需解压。它们似乎被解压缩为 CAF 文件,并占用大量内存空间(我的歌曲最多可以持续 5 分钟)。

我也尝试过 SpeakHere 示例,并使用 AudioQueue。我尝试同时播放 6 个音频队列。它似乎可以在模拟器上运行,但我不知道它是否可以在设备上运行,以及是否可以执行我想要的操作。

我不知道最好的方法是什么...任何人都可以帮助我吗?

I would like to do a mixing table on iPhone. I have the different tracks of one song and I want to play them on iPhone simultaneously. These songs are MP3 files, I want to be able to play up to 15 tracks simultaneously, and changing volume, muting some tracks, navigating in the total song, etc.

Apple MultichannelMixer example seems to do exactly what I want, but MP3 files need to be decompressed before being played. They seem to be decompressed to CAF files, and take a lot of space in memory (my songs can last up to 5 minutes).

I tried SpeakHere example too, and use AudioQueue. I tried it with playing 6 AudioQueues simultaneously. It seems to work on the simulator, but I don't know if it will work on the device, and if it can do what I want.

I don't know what is the best way to do this... Can anybody help me ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文