Multiroute AVAudioEngine in Swift

Hi,


I have an Apogee Quartet that gives me 12 input channels. I would like to link channel 0-1 to one AVAudioNode and channel 2-3 to a different, etc. AVAudioPlayer and AVAudioRecorder has a property channelAssignments that is useful for their purpose, but how do you accomplish it with AVAudioEngine.


I've gone through the multiroute example, but I am using Swift exclusively and don't quite understand how the code can be translated to Swift if at all possible.


My best guest is the AVAudioChannelLayout to set on each AVAudioFormat while connecting a node to the input node, but I don't seem to find any Swift example for this either.


Can anyone please point me in the right connection? Is my scenario possible using Swift?


Thanks

Has anyone ever figured this out?

I have tried to find info everywhere about multichannel audio with USB interfaces. more specifically, how (using an APogee quartet) would I select specific pair of stereo outs and make that the device's default output?

Multiroute AVAudioEngine in Swift
 
 
Q