Re: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
Re: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
- Subject: Re: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
- From: Jeff Moore <email@hidden>
- Date: Thu, 23 Jul 2009 11:16:48 -0700
There is no direct mapping between the two. But the best way to do it
would be:
0) get the UID string for the device from the HAL
1) Make a matching dictionary that searches for IOAudioEngine objects
2) Iterate through the matching services until you find the one with
the UID property that matches what you got from the HAL
3) Walk the IORegistry from here to find the USB object you are
looking for
On Jul 23, 2009, at 3:20 AM, Henrik Astrom wrote:
I want to find the product ID and vendor ID of the used USB audio
device. These parameters are available through IOUSBLib.h
IOUSBDeviceInterface:: GetDeviceVendor(...) and GetDeviceProduct
(...). Working with the device from CoreAudio I know which
AudiodeviceID my device has and can through
kAudioDevicePropertyTransportType see which ones are on USB, but how
do I map a device from a AudiodeviceID to kIOUSBDeviceInterfaceID
device interface to get these USB specific values?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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