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: Pete Gontier <email@hidden>
- Date: Thu, 24 Apr 2003 11:07:05 -0700
circa 4/23/03 12:40, Jeff Moore <email@hidden> wrote:
>
The right behavior here is still not to return an error. Rather the
>
right thing to do is to return a device ID of 0 since the device
>
couldn't be found.
I'm no AudioHardwareGetProperty expert, but this sounds like GetResource,
which as you'll remember causes all good non-trivial applications to contain
at least one instance of a code sequence like this one:
Handle h = GetResource (type,id);
if (h == NULL)
{
err = ResError ( );
if (!err) err = resNotFound;
}
Whatever the resolution of this issue, I hope it will be prominently
documented. GetResource has confused developers for close to two decades
now.
--
Pete Gontier -- pete at m-audio dot com -- <
http://www.m-audio.com/>
_______________________________________________
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.