Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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)



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.

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.