xmidi.com
 

MIDIPacketListAdd

Abstract: Add a MIDI event to a MIDIPacketList.

extern MIDIPacket * MIDIPacketListAdd( MIDIPacketList * pktlist,
 ByteCount listSize,
 MIDIPacket * curPacket,
 MIDITimeStamp time,
 ByteCount nData,
 const Byte * data);



Parameters

NameDescription
pktlistThe packet list to which the event is to be added.
listSizeThe size, in bytes, of the packet list.
curPacketA packet pointer returned by a previous call to MIDIPacketListInit or MIDIPacketListAdd for this packet list.
timeThe new event's time.
nDataThe length of the new event, in bytes.
dataThe new event. May be a single MIDI event, or a partial sys-ex event. Running status is not permitted.
Result: Returns null if there was not room in the packet for the event; otherwise returns a packet pointer which should be passed as curPacket in a subsequent call to this function.
{  Search xmidi.com:     }


[ home | docs | apps | links ]