iPhone:使用音频单元更改播放速度
使用音频单元时,有哪些不同方法可以更改 iPhone 上音频的播放速度?每种解决方案的优点/缺点是什么?
我有一个混音器单元和一个 IO 单元。我需要添加另一个单元(例如转换器单元)吗?我应该在哪个(输入或输出)总线上设置哪些音频单元参数?
我当前的设置:
<前><代码> ------------------------- ------------------- ------ |搅拌机| -----------> | IO单元| ------------------------ ------------------------
What are the different ways to change the playback speed of audio on the iPhone, when using Audio Units? What are the advantages / disadvantages of each solution?
I have a mixer unit and an IO unit. Do I need to add another unit (eg. converter unit)? What audio unit parameters should I set, on which (input or output) bus on which audio unit(s)?
My current setup:
------------------------- ------------------------- | mixer unit | -----------> | IO unit | ------------------------- -------------------------
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下所有解决方案都会改变音频的音调(以及播放速度)。要在更改播放速度后更正音频的音调,您需要使用第 3 方音频库(例如 SoundTouch,它具有 LGPL 许可证,因此您可以在您的应用程序中使用它,而无需将其开源,或者 DiracLE 或免费的 smbPitchShift)。有一个音频单元 (AUPitch),可以改变音频的音高,但它不适用于 iPhone;仅适用于 Mac。
下面的所有解决方案都经过测试,并且有效...
解决方案#1 [最佳解决方案]
解决方案#2
解决方案#3
All of the below solutions will alter the pitch of your audio (along with the playback speed). To correct the pitch of your audio after the playback speed has been changed you'll need to use a 3rd party audio library (such as SoundTouch, which has an LGPL license, so you can use it in your app, without making it open-source, or DiracLE or the free smbPitchShift). There is an audio unit (AUPitch), that can change the pitch of your audio, but it's not available for iPhone; only for Mac.
All of the solutions below are tested, and work...
Solution #1 [Best solution]
Solution #2
Solution #3