Re: mapping a CoreAudio device to a USB device
Re: mapping a CoreAudio device to a USB device
- Subject: Re: mapping a CoreAudio device to a USB device
- From: Jeff Moore <email@hidden>
- Date: Mon, 7 Aug 2006 14:05:56 -0700
On Aug 7, 2006, at 1:32 PM, Allen Brunson wrote:
Steve Checkoway wrote:
> Open the Xcode documentation window, type IORegistry into the
> search field and you get a whole list of functions that would seem
> to help you here.
i did that, but it's still a vast topic. i'm getting closer, though.
i was able to do this:
Yup. IOKit is a rich API. There's no doubt about that.
> 2) Search the IORegistry for a service that is a subclass of
> "IOAudioEngine" and has the same value for the property,
> "IOAudioEngineGlobalUniqueID" as the AudioDevice has for it's UID.
using IOServiceGetMatchingServices(). now i'm trying to do this:
> 3) Walk up from this service through it's parents until you find the
> IOService that represents the USB device and/or the interface page
> you are interested in.
i assume the right way to to that is with
IORegistryEntryGetParentEntry(), right?
Yes. That's the main API call to use.
well, it works if i search for an entry in kIOServicePlane, but not
in KIOUSBPlane.
i think i need a usb entry rather than a service entry, don't i?
or is there some
way to make it work with a kIOServicePlane entry?
No. You want to do all these operations in the service plane. That's
pretty much where you do all your IORegistry operations. The other
planes are there for very specific purposes and aren't involved in
the general "this service is a child of that service" operations.
--
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