Re: Stereo panning with the HAL
Re: Stereo panning with the HAL
- Subject: Re: Stereo panning with the HAL
- From: "Mikael Hakman" <email@hidden>
- Date: Thu, 8 May 2008 00:27:17 +0200
- Organization: Datakonsulten AB
On May 07, 2008 8:18 PM, Andrew MacDonald wrote:
I'm actually only interested in panning when the built-in speakers are
used; the optical jack is not a concern in my case. This leads to an
additional question: is there a way to detect if something is plugged
into the output jack? I tried kAudioDevicePropertyJackIsConnected,
but it also isn't recognized by the built-in output.
I understand why they didn't implement kAudioDevicePropertyJackIsConnected -
because in case of built-in output audio device on MB, MBP, and iMac it
wouldn't tell you the whole story anyway. If you connect analog 3.5 mm jack
(headphones, analog line, analog active speakers, desktop speakers etc) then
you still have volume controls on the channels. Only when you connect the
longer, 3.5 mm optical jack to the same connector, the system switches to
digital output and all volume control disappear. I would prefer to have 3
separate connectors and 3 independent stereo lines - headphones, analog
line, and digital line.
Anyhow, look for data source id and name. You get different name for each of
the 3 alternatives (built-in speakers, analog output, and digital output).
Note that the names change with your language, as does the device name.
I'm using device model id to refer to a particular device in language
independent way. Then I look for master volume control. If the actual device
doesn't expose such then I add my own master control.
/Mikael
_______________________________________________
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