AVAudioEngine output to a specific device
AVAudioEngine output to a specific device
- Subject: AVAudioEngine output to a specific device
- From: Ricci Adams <email@hidden>
- Date: Sat, 10 Jun 2017 01:28:42 +0000 (GMT)
Hi all!
I write a macOS DJ app which needs to play to two output devices at the same time. I use two AUGraphs: one playing to the system default output, and the other playing to a USB device in Hog Mode.
With AUGraph being deprecated in 2018, I'm trying to switch to AVAudioEngine and need to know:
What's the correct way to force output to a specific device (*not* the system default device)?
In my prototype, I'm getting the AudioUnit for the output node via AVAudioEngine.outputNode.audioUnit and then changing kAudioOutputUnitProperty_CurrentDevice. This works, but is it intentional or is it a side-effect of the current implementation (which may change in the future)?
If this isn't officially supported, would it be more future-proof to use a AudioDeviceIOProcID which calls an AVAudioEngine in manual rendering mode?
Thanks!
Ricci Adams
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden