• 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
Re: Built-in audio hardware question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Built-in audio hardware question
      • From: Jeff Moore <email@hidden>
References: 
 >Built-in audio hardware question (From: "tahome izwah" <email@hidden>)

  • Prev by Date: does logic 8 handle parametername changes ?
  • Next by Date: How to play 24 bit pcm data using core audio ?
  • Previous by thread: Re: does logic 8 handle parametername changes ?
  • Next by thread: Re: Built-in audio hardware question
  • Index(es):
    • Date
    • Thread