| |
typedef void (*MIDIReadProc)(const MIDIPacketList *pktlist, void *readProcRefCon, void *srcConnRefCon);
This is a callback function through which a client receives
incoming MIDI messages.
A MIDIReadProc function pointer is passed to the
MIDIInputPortCreate and MIDIDestinationCreate functions. The
CoreMIDI framework will create a high-priority receive
thread on your client's behalf, and from that thread, your
MIDIReadProc will be called when incoming MIDI messages
arrive. Because this function is called from a separate
thread, be aware of the synchronization issues when accessing
data in this callback.
Parameters
| Name | Description |
| pktlist | The incoming MIDI message(s). |
| readProcRefCon | The refCon you passed to MIDIInputPortCreate or
MIDIDestinationCreate |
| srcConnRefCon | A refCon you passed to MIDIPortConnectSource, which
identifies the source of the data. |
|