Re: Finding the default built-in audio device
Re: Finding the default built-in audio device
- Subject: Re: Finding the default built-in audio device
- From: Brad Ford <email@hidden>
- Date: Mon, 11 Jul 2005 08:22:14 -0700
Dave,
You can query the transport type property
(kAudioDevicePropertyTransportType) to get a 4-char code like this:
(from IOAudioTypes.h)
enum {
kIOAudioDeviceTransportTypeBuiltIn = 'bltn',
kIOAudioDeviceTransportTypePCI = 'pci ',
kIOAudioDeviceTransportTypeUSB = 'usb ',
kIOAudioDeviceTransportTypeFireWire = '1394',
kIOAudioDeviceTransportTypeNetwork = 'ntwk',
kIOAudioDeviceTransportTypeWireless = 'wrls',
kIOAudioDeviceTransportTypeOther = 'othr'
};
HTH.
-Brad Ford
QuickTime Engineering
On Jul 11, 2005, at 4:59 AM, Dave Addey wrote:
Hi CA-API,
I'm querying the list of available audio devices using the
AudioDeviceGetProperty API, and I need to find some way to know
when I've
come across the default built-in Mac device. This is because I
want to
present my own localised string in my application to present this
device for
selection.
Is there a way that I can determine (based on the info available to
me from
getting name, property, uniqueid etc) that a given device is the
default
built-in audio device? I mean literally the built-in sound card,
not the
device currently selected as "Default" for output.
Thanks for any help,
Dave Addey.
_______________________________________________
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
_______________________________________________
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