Re: siVendorProduct
Re: siVendorProduct
- Subject: Re: siVendorProduct
- From: Alberto Ricci <email@hidden>
- Date: Thu, 6 Jun 2002 23:49:51 +0200
I would like to have a way to get the USB vendor ID and product ID
for an USB Audio device without using the IOKit.
Yes : use CoreAudio : the HAL has 2 selctors that can provide the
information : kAudioDevicePropertyDeviceManufacturer and
kAudioDevicePropertyDeviceManufacturerCFString. If possible I
strongly advise you to move to the HAL property-based machanism in
order to get information from the hardware.
The thing is that I would like to have a single piece of code work
for both Mac OS 9 and Mac OS X. Of course I could #ifdef my code and
use either CoreAudio or iterate through USBGetDeviceDescriptor()s,
actually that's how I'm doing it now and yes, it works fine.
However, I was hoping for some "universal" method of getting that
information, since I'm not doing anything special for which I could
require Mac OS X - I'd just like to know if the selected sound input
device is a particular USB device (for some specific devices, I need
to show a certain alert).
Is there any such way? Or is the siVendorProduct selector only
implemented in Carbon's USB Audio driver?
There is no such thing as Carbon's USB Audio driver . There is Apple
USB class driver, that is an IOKit driver and works with any USB
class compliant device.
You are right, I probably meant something like "Carbon's
implementation of SPBGetDeviceInfo() when used with Apple's USB Audio
class driver".
Where is that selector used? I am wondering, since it's in Sound.h
and it definitely looks like what I need, but I couldn't find any
documentation on it anywhere...
Thanks!
Alberto.
_______________________________________________
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.