• 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: Getting an AudioDeviceID from device unique identifier (UID)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting an AudioDeviceID from device unique identifier (UID)


  • Subject: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • From: Brad Ford <email@hidden>
  • Date: Wed, 23 Apr 2003 09:26:13 -0700

On Wednesday, April 23, 2003, at 07:29 AM, Sean McBride wrote:
<SNIP>

I tried this:

AudioDeviceID myDevice;
AudioValueTranslation trans;
trans.mInputData = (void*)CFSTR ("AppleDBDMAAudioEngine:0");

There's your problem. You need to pass a POINTER to a CFStringRef. Like this:

CFStringRef myKnownUID = CFSTR("AppleDBDMAAudioEngine:0");
trans.mInputData = &myKnownUID;

Everything else in your code is correct.

trans.mInputDataSize = sizeof (CFStringRef);
trans.mOutputData = &myDevice;
trans.mOutputDataSize = sizeof (AudioDeviceID);
UInt32 size = sizeof (AudioValueTranslation);
OSStatus err = AudioHardwareGetProperty (
kAudioHardwarePropertyDeviceForUID,
&size,
&trans);


Brad Ford
QuickTime Engineering
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting an AudioDeviceID from device unique identifier (UID)
      • From: "Sean McBride" <email@hidden>
References: 
 >Getting an AudioDeviceID from device unique identifier (UID) (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Getting an AudioDeviceID from device unique identifier (UID)
  • Next by Date: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Previous by thread: Getting an AudioDeviceID from device unique identifier (UID)
  • Next by thread: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Index(es):
    • Date
    • Thread