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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
