Re: Built-in audio hardware question
Re: Built-in audio hardware question
- Subject: Re: Built-in audio hardware question
- From: "Mikael Hakman" <email@hidden>
- Date: Mon, 19 May 2008 13:10:45 +0200
- Organization: Datakonsulten AB
On Sunday, May 18, 2008 8:44 AM, tahome izwah wrote:
is there any way to uniquely identify and select the built-in hardware
as an audio device? I am not talking about the *default* device (the
one selected in the Sound control panel) - I am specifically looking
for a way to select the *built-in* device no matter what device is set
in the Sound prefs.
Selecting the device by name obviously doesn't work on all systems due
to localization. What would be the best way to do this?
I'm assuming that you ask how to find, in your program code, device id
corresponding to the built-in hardware, in language (localization)
independent way. I get list of all device ids. Then in a loop I ask each
device for its model UID and compare this to the model UID I want to use
(which I read from a configuration plist). In my MBP and iMac, the built-in
output device model UID is "AppleHDA". You could also use model instance UID
which would be "AppleHDA:0" in this case. I don't know whether this model
UID is the same in MB, and in the other, older, or future Mac computers.
/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