• 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: Chris Reed <email@hidden>
  • Date: Thu, 24 Apr 2003 11:55:13 -0500

Oops, sorry, didn't see Jeff's reply because Mail.app for some reason showed the reply as a different thread than the question...

-chris

On Thursday, Apr 24, 2003, at 11:41 US/Central, Chris Reed wrote:


On Wednesday, Apr 23, 2003, at 11:53 US/Central, Sean McBride wrote:

Brad Ford (email@hidden) wrote on Wed, 23 Apr 2003 09:26:13 -0700:

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;

Thanks Brad! I should have been more suspicious of the need to cast.

Shouldn't AudioHardwareGetProperty() have returned me an error though?
Perhaps I'm lucky it didn't crash. :)


There's no way for it to know that the pointer you passed is not pointing to the right thing.

-chris
_______________________________________________
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.

References: 
 >Re: Getting an AudioDeviceID from device unique identifier (UID) (From: Chris Reed <email@hidden>)

  • Prev by Date: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Next by Date: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Previous by thread: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Next by thread: Proper behaviour when failing a PerformFormatChange or InputSelec torChange
  • Index(es):
    • Date
    • Thread