Hello folks,

I've been trying to work out a way to route my program's audio output to a
specific AirPlay device; ideally, as a system output device,  and
*without *needing
to have already selected the device through System Preferences or the
AirPlay menu bar item.

There exists an ancient blog post describing how this process used to work
in Mountain Lion,
https://joris.kluivers.nl/blog/2012/07/25/per-application-airplay-in-mountain-lion/
, but AirPlay devices are no longer exposed as system output devices in the
same way (since Yosemite or El Capitan).

While looking for leads, I found this tidbit in the header for
AudioTransportManager inside AudioHardwareBase.h, which describes a process
for making AirPlay devices into AudioEndPoints that programs can output
sound to:

https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.9.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/AudioHardwareBase.h#L388

However, asking for the list of TransportManagers the way the header
prescribes turns up an empty list (Swift playground code):
https://gist.github.com/jcm93/98be5d2878d1e4a62c6b2dc9c14e0bcb

I filed a DTS incident to ask about this, and heard back that "there is no
supported way to achieve the desired functionality given the currently
shipping system configurations."

I've already filed an enhancement request. So, in the meantime... can
anyone think of an unsupported way?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (Coreaudio-api@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to