MIDI device "driver" how-to?
MIDI device "driver" how-to?
- Subject: MIDI device "driver" how-to?
- From: Stephen Davis <email@hidden>
- Date: Mon, 25 Jun 2001 15:00:00 -0700
I would like to write a device "driver" for an external MIDI device I
own. From reading the Core Audio pdf it seems that I only need to write
a CFPlugin-based "driver" for the device since it is a generic device
with midi-in and midi-out ports.
If so, is there any documentation or example code for creating a midi
device "driver"? Haven't located anything other than the
CoreMIDIServer/MIDIDriver.h header file so far. There is a note in
there to "see MIDIDriver.cpp" but where might that be?
Also, is there a generic driver that would just let me get started
talking to my device before I write the driver for it? Right now, when
I do a scan I see my USB interface (MIDISPORT with driver from the music
kit folks) but not the device that's hooked up to it. Then again, I
have no idea if any sort of probing is going on and I haven't yet tried
just sending it a query to see what happens. I'm guessing that for
generic devices I just need to open an in/out port pair and shove data
at it.
thanks,
stephen