Re: Sample USB MIDI driver broken?
Re: Sample USB MIDI driver broken?
- Subject: Re: Sample USB MIDI driver broken?
- From: Doug Wyatt <email@hidden>
- Date: Mon, 12 May 2003 11:52:58 -0700
On Saturday, May 10, 2003, at 08:08 US/Pacific, Stefan Werner wrote:
Hi,
I recently tried the sample driver for USB MIDI devices as shipped
with the latest CoreAudio SDK. However, it does not work as
advertised, it crashes the MIDIServer even with no USB device
attached. In the debugger I could see that it crashes before even
probing for USB hardware. It does not appear to be a collision with
the standard USB MIDI driver as it crashed also when I uninstalled the
Apple driver.
Am I doing something wrong or is the example broken?
Stefan
The example is indeed broken; the UUID in the code doesn't match the
one in the .plist ... but I'm also considering not fixing it, because
it tells me that you didn't follow the instructions in
DriverDevelopmentNotes.rtf to create a new UUID for your plug-in's
factory function. If I leave it broken then that will make it difficult
for people to inadvertently ship drivers with the UUID that's in the
sample project and collide with each other! (This has happened!)
Anyhow, from DriverDevelopmentNotes.rtf:
Your driver needs its own UUID (universally unique identifier) for its
factory function. The sample driver includes source for a command-line
tool, mkuuid, that will generate one for you. This UUID needs to be
entered into two places in your project:
- defined as a constant in your code, and passed to the constructor
of your MIDIDriver subclass (see kFactoryUUID in SampleUSBDriver.cpp)
- the project's bundle settings
Make sure that your driver's target settings include the following,
accessible in Project Builder under the Expert Bundle Settings:
CFPlugInDynamicRegistration String NO
CFPlugInFactories Dictionary 1 key/value pair
<your new factory UUID> String <your factory
function name>
CFPlugInTypes Dictionary 1 key/value pair
ECDE9574-0FE4-11D4-BB1A-0050E4CEA526 Array 1
object
(this is kMIDIDriverTypeID)
0 String <your new
factory UUID>
Doug
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.