Im trying to figure out how to embed third party AUs in my AU, specifically MIDI Instruments. Hosting other AUs is trivial, what seems much more complex is to act as a Instrument passthrough. Any hint?
best
You can open another Audio Unit from within your Audio Unit. You can use the MIDI input and output blocks to pass MIDI events (scheduleMIDIEventBlock and midiOutputEventBlock https://developer.apple.com/documentation/audiotoolbox/auaudiounit).
Alternatively, you can use AVAudioEngine, which has support for MIDI event routing between Audio Unit nodes (see the connectMIDI method in AVAudioEngine.h).
Alternatively, you can use AVAudioEngine, which has support for MIDI event routing between Audio Unit nodes (see the connectMIDI method in AVAudioEngine.h).