Re: Programatically determining external sound card vs internal sound card
Re: Programatically determining external sound card vs internal sound card
- Subject: Re: Programatically determining external sound card vs internal sound card
- From: Jeff Moore <email@hidden>
- Date: Tue, 16 Feb 2010 09:17:34 -0800
On Feb 16, 2010, at 12:56 AM, email@hidden wrote:
> I have to display available audio cards in a combo box and select the
> intended one for use
> The external audio cards would be connected via USB
>
> I need to determine programatically if the selected audio driver is for
> external card or internal/built-in card
> Is there a way to do this
The property you are looking for is kAudioDevicePropertyTransportType. This property tells you how a device is connected to the system.
> Also For each driver/card I need to display available input sources like
> Mic-in, Stereo mix , line-in
Generally, this information will be available via the master data source control (kAudioDevicePropertyDataSource and friends on device channel 0). I say "generally" here because not all devices will support a data source control.
> Can you provide a sample code or link for the above
There is nothing specific this that I know of, but there is basic HAL sample code in /Developer/Examples/CoreAudio/HAL.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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