MIDIReceived(_:_:)
Distributes incoming MIDI from a source to the client input ports which are connected to that source.
Declaration
func MIDIReceived(_ src: MIDIEndpointRef, _ pktlist: UnsafePointer<MIDIPacketList>) -> OSStatusParameters
- src:
The source which is transmitting MIDI.
- pktlist:
The MIDI events to be transmitted.
Return Value
An OSStatus result code.
Discussion
Drivers should call this function when receiving MIDI from a source.
Clients which have created virtual sources, using MIDISourceCreate, should call this function when the source is generating MIDI.
Unlike MIDISend(), a timestamp of 0 is not equivalent to “now”; the driver or virtual source is responsible for putting proper timestamps in the packets.