USBSampleMIDIDriver
USBSampleMIDIDriver
- Subject: USBSampleMIDIDriver
- From: Nuno Santos <email@hidden>
- Date: Wed, 13 Jun 2007 09:19:15 +0100
Hi everyone,
In the last months i've been working on a custom USB MIDI controller. My
posts are know for pure lameness! :P
After getting the controller ready in the hardware part i now need to
write a driver for taking advantage of the USB support implemented on it
using the AVR-USB driver.
This driver implements a low-speed device, and i cant implement a USB
AUDIO device with it.
So, my strategy consists in present the device to the operating system
as a joystick and translate the values into MIDI values.
I've been analyzing the SampleMIDIDriver and i finnaly understand
something of it. For testing purposes i'm using my mouse, as i don't
have the MIDI controller with me all the time, and the two devices are
very similar since they are HID devices.
I'm sending this message to both lists because its related with booth:
with the USB because its necessary to deal with USB devices and with
CORE-AUDIO because of the MIDI driver architecture.
Enough of talking... my problem is somewhere about getting an interface.
After my mouse gets mateched the driver tries to get an interface for
it, i don't know what kind of interface it is trying to get because i
don't even know what kind of interface was meant to be used with
SampleUSBMIDIDriver.
I need to somehow return a reference to the device to the MIDI part of
the driver:
- Should i use the HID manager to handle the device and deliver it to
the MIDI part of the driver?
- Or should i use raw access to the device?
I would love to have some kind of guidelines to conclude this process.
Many thx,
Best regards,
Nuno
_______________________________________________
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