在 iPhone 上同时播放多首 MP3 歌曲
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这里。苹果建议:
http://developer.apple.com/iphone /library/codinghowtos/AudioAndVideo/#PLAYBACK-PLAY_MULTIPLE_SOUNDS_SIMULTANEOUSLY
look at here. Apple suggest this:
http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/#PLAYBACK-PLAY_MULTIPLE_SOUNDS_SIMULTANEOUSLY