Using AVAudioEngine for an Audio Unit Extension

Hi,

my iOS app consists of a couple of Audio Nodes (AVAudioPlayerNode, AVAudioUnitSampler), which I have interconnected using an AVAudioEngine. Now, I would like to add an Audio Unit Extension to the app. Can anybody give me a hint how to encapsulate the AVAudioEngine in an AudioUnit that I then return in createAudioUnitWithComponentDescription:error: ?


Or is this the wrong approach?


Thank you.

Replies

I'm also interested.

I know that it has to be written in C to avoid cpu locks and stuff like that, but I'm trying to connect the audio engine's busses and renderblocks and return them into the AudioUnitExtension's overriden methods. It doesn't seem to work.

It produces sound from the player but it's not piped into the host.