Audio Plugin Implementation
Does anyone kno开发者_运维百科w about some sample code that illustrates the implementation of an audio plugin for iOS?
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.
精彩评论