音频插件实现
有谁知道一些示例代码来说明 iOS 音频插件的实现?
Does anyone know about some sample code that illustrates the implementation of an audio plugin for iOS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iPhone SDK 3 有一个 AUPlugin.h 标头,它似乎允许您创建自己的音频单元,然后您可以将其放入 AUGraph 中。但它显然从未工作过,并且它的所有函数(AudioComponentRegister() 等)在 iOS 4 中均已弃用。
基本上,要进行自己的音频处理,您需要将渲染回调设置为单个音频单元的属性或AUGraph 中的某个位置,并在该回调函数中完成您的工作。
There was an AUPlugin.h header for iPhone SDK 3 that seemed to permit you to create your own audio units, which you could then put in an AUGraph. But it apparently never worked, and all its functions (AudioComponentRegister(), etc.) were deprecated in iOS 4.
Basically, to do your own audio processing, you need to set up a render callback as a property of a single audio unit or somewhere in an AUGraph, and do your work in that callback function.