I've looked around the documentation and searched a bit on google and I'm curious if it possible to have a sidechain input using the v3 Audio Units API in both iOS and OSX. I would like to be able to instantiate a plug-in on one track and select another track to manipulate the Audio Units effect on the first track. If so I was wondering where I might find documentation on this.
Yes - Audio Units feature the concept of separate audio busses. As an example of how a host uses separate busses, Logic usually uses Input bus 0 as the AU input and the next input bus as a side chain input.
More specifically:
- If you have an Instrument (kAudioUnitType_MusicDevice) which has no audio input - the first Input bus (bus 0) is used as side chain.
- For Effects (for example kAudioUnitType_Effect), Logic uses the second input bus (bus 1) as a side chain if the AU reports it has at least two input busses.
For the v3 API see AUAudioUnitBus, AUAudioUnitBusArray & inputBusses property for details.