• 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: Finding the default built-in audio device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Finding the default built-in audio device
      • From: Dave Addey <email@hidden>
References: 
 >Finding the default built-in audio device (From: Dave Addey <email@hidden>)

  • Prev by Date: tooltips display interrupting AudioUnit performance?
  • Next by Date: Re: MIDIObjectFindByUniqueID in CA-Java?
  • Previous by thread: Finding the default built-in audio device
  • Next by thread: Re: Finding the default built-in audio device
  • Index(es):
    • Date
    • Thread