Re: How to uniquely identify audio device
Re: How to uniquely identify audio device
- Subject: Re: How to uniquely identify audio device
- From: "B.J. Buchalter" <email@hidden>
- Date: Sun, 16 Dec 2007 23:31:30 -0500
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
_______________________________________________
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