mapping a CoreAudio device to a USB device
mapping a CoreAudio device to a USB device
- Subject: mapping a CoreAudio device to a USB device
- From: "Allen Brunson" <email@hidden>
- Date: Tue, 1 Aug 2006 18:30:19 -0500
- Thread-topic: mapping a CoreAudio device to a USB device
Title: mapping a CoreAudio device to a USB device
Hello,
I have several USB AM/FM radios all connected to a single Mac, each listening to a different radio station. I collect the audio from the radios through PortAudio (http://www.portaudio.com/), which uses CoreAudio under the hood. But CoreAudio doesn't have a complete enough API to do everything I want. Specifically, I need to tune the radios to a particular station at program startup, by sending bytes out the USB interface, which I use HID functions for.
I use IOIteratorNext() to get io_service_t handles for each radio. I'm using PortAudio to return a list of PaDeviceIndexes for all the radios, which no doubt maps to some CoreAudio thing internally. Say I've got radios A, B, and C. They map to PortAudio handles 2, 3, and 4, and io_service_t handles 4006, 4007, and 4008 (let's say). How can I figure out which PortAudio handle goes with which USB handle?
If there's some CoreAudio method I could call that would uniquely identify a particular radio as a particular USB device, I could probably hack up the PortAudio source to figure out where I could call that method.
Thanks,
Allen
********************************************
This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and CONFIDENTIAL.
If you are not the intended recipient, you are hereby notified
that any dissemination of this communication is strictly prohibited.
If you have received this communication in error, please erase
all copies of the message and its attachments and notify us
immediately.
Thank you.
********************************************
_______________________________________________
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