• 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: How to uniquely identify audio device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to uniquely identify audio device


  • Subject: Re: How to uniquely identify audio device
  • From: Lorenzo Thurman <email@hidden>
  • Date: Mon, 17 Dec 2007 13:09:57 -0600

B.J. Buchalter wrote:
You want kAudioDevicePropertyDeviceUID. This will give you an identifier that uniquely identifies the device (more or less -- it is dependent on how good a job the driver does). You can translate this to a valid device ID using the CA if the device is actually available.

Do a search for more info about this property.

Best regards,

B.J. Buchalter



On Dec 16, 2007, at 11:21 PM, Lorenzo Thurman wrote:

I have an application that can switch between different audio I/O devices. I would like for the application to be able to select a particular device for input or output on launch. AudioHardwareGetProperty returns, along with the number of I/O channels, the device ID and name. The name and ID, both seem too implementation dependent and I'm likely to get a different ID as devices are removed from/reconnected to the system. So basically my question is: How do I ensure that a device's input (or output), let's call it device 'A input', is always selected on application on launch?
TIA


"No tyranny is so irksome as petty tyranny: the officious demands of policemen, government clerks, and electromechanical gadgets."
-- Edward Abbey



Lorenzo Thurman email@hidden



_______________________________________________
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

B.J. Buchalter
Metric Halo
http://www.mhlabs.com



Thanks, I think this is just what I'm looking for.
_______________________________________________
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


References: 
 >How to uniquely identify audio device (From: Lorenzo Thurman <email@hidden>)
 >Re: How to uniquely identify audio device (From: "B.J. Buchalter" <email@hidden>)

  • Prev by Date: Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)
  • Next by Date: audiounit persistent property (how?)
  • Previous by thread: Re: How to uniquely identify audio device
  • Next by thread: Re: How to uniquely identify audio device
  • Index(es):
    • Date
    • Thread