Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How to uniquely identify audio device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to uniquely identify audio device




But it looks like if its USB device (maybe firewire as well), the UID will be different if the device is connected to another port. This makes it a bit problematic, but I suppose I may have to rely on the identifier string since a device can't change its name. Although future versions of the same device might.

Firewire devices have real UIDs; you can rely on them. USB is another story; I think if the device actually has a UID the Apple driver will give you a back a UID that is useful, but most USB devices are not uniquely serialized so the Apple driver provides as useful a UID as it can -- which depends on the port. So if the device remains connected on the same port the UID won't change between boots etc, but it is not 100% reliable if you move the device around.


As far as the name as an ID, this doesn't help you if the user has two of the samd devices attached...

As I said, this is not the case for Firewire, where each device is required to have a unique serial number. It would be a very broken driver that did not provide a persistent UID or these devices. I know that our driver for our FireWire devices does provide a persistent UID for each of our units.

Best regards,

B.J. Buchalter
Metric Halo
http://www.mhlabs.com
	


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to uniquely identify audio device (From: Lorenzo Thurman <email@hidden>)
 >Re: How to uniquely identify audio device (From: "B.J. Buchalter" <email@hidden>)
 >Re: How to uniquely identify audio device (From: Lorenzo Thurman <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.