AVAudioEngine: routing different AVAudioPlayerNodes to different channels

Hi,

I have been searching all over for a way to do this on macOS: playing different stereo files on different pairs of audio outputs of the same hardware device. I am currently using AVAudioEngine with two AVAudioPlayerNodes and I can mix them and change the mapping of the entire mix through the use of AudioUnitSetProperty on the engine output, but I cannot have multiple AVAudioPlayerNodes play on different outputs.

Obviously, being on macOS I cannot use AVAudioSession...

Thank you if anyone has any idea on how to achieve this !

Post not yet marked as solved Up vote post of dtapie Down vote post of dtapie
827 views