具有良好内存管理功能的声音引擎 (iPhone/iPad)
我正在寻找没有高级效果但具有良好的缓冲区内存管理的简单声音引擎。至少它必须跟踪所有播放的声音,卸载未使用的声音缓冲区(但保留所有当前播放的声音),调整声音组的增益。支持输入流和压缩格式将是一个优势。
PS:FMOD 和 BASS 是很好的引擎,但对于这些低要求来说太贵了。
I'm looking for simple sound engine without advanced effects but with good management of buffers memory. At least it must track all playing sounds, unload not used sound buffers (but keep all currently playing), adjust gain for sound groups. Support of input streaming and compressed formats would be advantage.
PS: FMOD and BASS are good engines but too expensive for these low requirements.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否尝试过STK?它可以与 iOS 的核心音频接口。我强烈推荐它,它具有声音合成的所有主要重要构建块,无需任何额外的东西(如 CLAM),非常轻巧且高度便携。
Have you tried STK? It can interface with core-audio for iOS. I strongly recommend it, it has all the main important building blocks for sound synthesis, without any additional stuff (like CLAM), is very lightweight and highly portable.
我正在使用 SoundMaster 引擎。
它非常简单并且具有良好的内存管理功能。
I'm using SoundMaster engine.
It's super simple and has good memory management.
我有一些参考资料,应该对您有帮助:
Kowalski Engine 是一个用 C 语言编写的实时音频引擎,基于分层混合总线系统。
http://kowalski.sourceforge.net/
CLUNK C++ 库提供对实时 3D(双耳)的支持声音的产生。它对开发人员几乎没有任何限制
http://sourceforge.net/projects/clunk/
简单目标-OpenAL、AVAudioPlayer 和音频会话管理的 C 接口。
https://github.com/kstenerud/ObjectAL-for-iPhone
我相信这应该有助于获得具有出色内存管理的解决方案。
I have couple of references those should be helpful to you:
The Kowalski Engine is a real time audio engine written in C, based on a hierarchical mix bus system.
http://kowalski.sourceforge.net/
The CLUNK C++ library provides support for real-time 3D(binaural) sound generation. It puts virtually no limitations on the developer
http://sourceforge.net/projects/clunk/
Easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
https://github.com/kstenerud/ObjectAL-for-iPhone
I believe this should be helpful to get the solution with the great memory management in place.
我发现 CocosDenshion (Cocos2d 的一部分)很容易使用并有一个简单的内存管理。
I've found CocosDenshion (part of Cocos2d) to be easy to use and to have a simple memory management.