• 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: AudioDeviceGetProperty error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioDeviceGetProperty error


  • Subject: Re: AudioDeviceGetProperty error
  • From: Mikael Hakman <email@hidden>
  • Date: Sat, 23 Aug 2008 16:42:57 +0200


On Aug 23, 2008, at 3:33 PM, Roland Silver wrote:

There are many ways, depending on your needs.

One way is to use kAudioHardwarePropertyDevices in AudioObjectGetPropertyData or in AudioHardwareGetProperty call to get IDs of all available devices and then pickup the one whose UID is the one you want by using kAudioDevicePropertyDeviceUID in AudioObjectGetPropertyData or in AudioDeviceGetProperty. UID of built-in output device in my MBP is "AppleHDAEngineOutput:0". Note the difference between device ID which is a number that is used to refer to a device in a program, and device UID which is a string that the system uses for uniquely identifying a particular device. This method has the advantage that you can select/search for a device based on other properties than its UID, e.g. its localized name (the one that the user sees).

If you know UID of your device a priori, then you could also use kAudioHardwarePropertyDeviceForUID in AudioObjectGetPropertyData or in AudioHardwareGetProperty call to get device ID at once.

/Mikael

On Aug 23, 2008, at 3:33 PM, Roland Silver wrote:

Sounds good! What should I use for actual device id for the mac stereo output?
_______________________________________________
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


  • Prev by Date: Re: AudioDeviceGetProperty error
  • Next by Date: Downloading via FTP
  • Previous by thread: Re: AudioDeviceGetProperty error
  • Next by thread: Downloading via FTP
  • Index(es):
    • Date
    • Thread