Re: Custom MIDI driver does not appear in Audio MIDI Setup
Re: Custom MIDI driver does not appear in Audio MIDI Setup
- Subject: Re: Custom MIDI driver does not appear in Audio MIDI Setup
- From: Kurt Revis <email@hidden>
- Date: Mon, 9 May 2005 22:20:52 -0700
On May 9, 2005, at 3:35 PM, Chris Alfred wrote:
I have created a dummy MIDI driver. I placed the resultant .plugin
in the
'/Library/Audio/MIDI Drivers' directory.
The MIDI server finds the driver and creates the driver object as
expected,
however, the device does not appear in Audio MIDI Setup.
What else do I have to do?
AMS doesn't show instances of drivers. It shows the instances of
MIDIDevice that are in a MIDISetup. Your driver is responsible for
creating devices, specifying what their entities are (usually each
"port", consisting of a MIDI input and output, is an entity), and
adding the devices to the system default MIDISetup.
Your code doesn't currently do much of anything. It needs to call
MIDIAddDevice(), MIDISetupAddDevice(), MIDIDeviceAddEntity(), etc.
See the comments in the headers:
/System/Library/Frameworks/CoreMIDIServer.framework/Headers/
MIDIDriver.h
/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDISetup.h
Also, this example code shows exactly how to call these functions:
/Developer/Examples/CoreAudio/MIDI/SampleUSBDriver/
--
Kurt Revis
email@hidden
_______________________________________________
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