MIDIReadProc

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

NameDescription
pktlistThe incoming MIDI message(s).
readProcRefConThe refCon you passed to MIDIInputPortCreate or MIDIDestinationCreate
srcConnRefConA refCon you passed to MIDIPortConnectSource, which identifies the source of the data.


[ Search xmidi.com:    ]


[ home | docs | apps | links ]