Re: Getting an AudioDeviceID from device unique identifier (UID)
Re: Getting an AudioDeviceID from device unique identifier (UID)
- Subject: Re: Getting an AudioDeviceID from device unique identifier (UID)
- From: "Sean McBride" <email@hidden>
- Date: Wed, 23 Apr 2003 12:53:53 -0400
- Organization: Matrox Electronic Systems Ltd.
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. :)
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer +1-514-822-6000
Matrox Electronic Systems Ltd. Montrial, Quibec, Canada
_______________________________________________
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.