• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AVAudioEngine output to a specific device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Seeking advice for modifying audio input source
  • Next by Date: How to move a playhead (seek) in an AUGraph
  • Previous by thread: Bug in kAudioUnitProperty_HostCallbacks / AUAudioUnit.transportStateBlock? [Solved]
  • Next by thread: How to move a playhead (seek) in an AUGraph
  • Index(es):
    • Date
    • Thread