OpenAL 的音效库/扩展(在 iOS 上运行)?
我想做一些DSP效果处理,创建镶边、回声等效果。 可以通过 OpenAL 完成吗?或者我应该使用完全不同的框架/库?
I want to do some DSP effect processing, create effect like flanger, echo, etc.
Could it be done via OpenAL? Or should I use enterely different framework/library?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需编写您自己的音频库即可。 iOS 设备没有 OpenAL 的硬件加速。这并不是特别困难,然后您还可以使用苹果音频单元(其中一些是硬件加速的)。
Just write your own audio library. iOS devices don't have hardware acceleration for OpenAL. It isnt particularly difficult to do, and then you can also use apples audio units (some of which are hardware accelerated).
自 iOS 5.0 起,OpenAL 原生支持一些 DSP 效果。
例如,混响支持 10 多个不同空间的仿真(小型/中型/大型房间、中型/大型大厅、Plate、中型/大型房间、大教堂和多种变体)。
您可以在 ObjectAL 包装器中找到一个很好的参考实现。该存储库位于 https://github.com/kstenerud/ObjectAL-for-iPhone
从此存储库获取源代码,加载“ObjectAL.xcodeproj”并在任何 iOS 5.0 设备上运行 ObjectALDemo 目标(也应该在模拟器上运行)。这将为您提供一个良好的起点并感受混响效果的能力。我个人建议利用 ObjectAL 库,而不是直接使用 OpenAL。
祝你的项目好运!
Since iOS 5.0 some of the DSP effects are natively supported by OpenAL.
For example, reverb is supported with emulation for more than 10 different spaces (Small/Medium/Large Room, Medium/Large Hall, Plate, Medium/Large Chamber, Cathedral and several variations).
You can find a good reference implementation in the ObjectAL wrapper. The repository is available at https://github.com/kstenerud/ObjectAL-for-iPhone
Grab the source from this repository, load "ObjectAL.xcodeproj" and run the ObjectALDemo target on any iOS 5.0 device (should also work on the simulator). This will give you a good starting point and feeling of what the reverb effect is capable of. I personally recommend taking advantage of the ObjectAL library instead of working with OpenAL directly.
Good luck with your project!