Re: Speaker Audio when Headphone connected?
Re: Speaker Audio when Headphone connected?
- Subject: Re: Speaker Audio when Headphone connected?
- From: Brian Willoughby <email@hidden>
- Date: Mon, 25 Feb 2008 15:36:11 -0800
What about the source/destination property for the output? In Audio
MIDI Setup, this appears as a popup button labeled "Source" under the
Audio Output. On my Power Mac, this lists "Internal speakers" and
"Digital Out".
In other words, if Apple were to (theoretically) make it possible for
software to enable the built-in speakers, even overriding anything
plugged into the headphone jack, wouldn't the proper CoreAudio API
access to this be through some property of the output stream?
Certain Apple computers may physically be capable of this routing,
but third-party programmers only have access to what is supported.
It would seem that there is already a supported API for handling this
situation. Whether or not it is implemented in the current release
is another question.
I went looking for the code, and I see: kAudioJackControlClassID, a
boolean which seems to only indicate whether something is plugged in
or not; kAudioDataSourceControlClassID and
kAudioDataDestinationControlClassID, which might be appropriate, even
though it seems Audio MIDI Setup should label the Audio Output
"Destination", not "Source"; and then there are many options for
settings the PlayThroughDestination, which are not appropriate. The
Audio Data Source/Destination Control Class ID properties have
associated properties which list the available options, and could be
used to populate the popup button.
Brian Willoughby
Sound Consulting
_______________________________________________
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