Re: MIDI for my PCI device on OS X
Re: MIDI for my PCI device on OS X
- Subject: Re: MIDI for my PCI device on OS X
- From: Matt Gonzalez <email@hidden>
- Date: Wed, 14 May 2003 15:16:17 -0700
Hi Dave-
We went through the same process. Here's what I'd suggest:
- Take the USB sample driver and change the IO registry code so it looks
for your PCI device
- The best way that I found to communicate between the MIDI driver and
the kext was to implement a user client. This is pretty straightforward
to do, if you read this example first:
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/IOKit/SimpleUserClient.htm
I found the docs on this somewhat hard to follow, but the example made
it very clear.
Don't forget to make new UUID for your driver that's different from the
sample driver.
The user client is pretty straightforward. I found the IO registry code
harder.
Matt
Dave Hersey wrote:
Hi,
Are there any samples or tutorials available for writing an OS X MIDI driver
that communicates with an audio driver kext for a PCI card? I've looked at
the CoreAudio book, the MIDI docs in the latest CoreAudio SDK, the headers,
and the USB driver sample, but what I'm really looking for is a roadmap for
developing a MIDI driver, not just an explanation of what a particular MIDI
function does.
I've read that my MIDI driver/CFPlugin can communicate to my kext using the
IOKit, but I'm not sure if that means that I need to do that through a user
client or using something else. Also, I don't have an overall idea of how to
(correctly) design and implement an OS X MIDI driver, whereas the process
for developing kexts is pretty well documented. Finally, the interaction
between my plugin, the MIDIServer, and the rest of the OS (audio or
otherwise) seems to be a black box.
Can anyone point me to further samples or documentation that explains all of
this?
Thanks,
Dave
_______________________________________________
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.
_______________________________________________
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.