• 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: 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.

References: 
 >Re: Getting an AudioDeviceID from device unique identifier (UID) (From: Jeff Moore <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: Re: Getting an AudioDeviceID from device unique identifier (UID)
  • Index(es):
    • Date
    • Thread