• 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: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID (From: Henrik Astrom <email@hidden>)

  • Prev by Date: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
  • Next by Date: should I use AudioQueueOfflineRender() or AudioConverter services in iPhone OS 3.0
  • Previous by thread: Mapping from AudiodeviceID to kIOUSBDeviceInterfaceID
  • Next by thread: should I use AudioQueueOfflineRender() or AudioConverter services in iPhone OS 3.0
  • Index(es):
    • Date
    • Thread