| |
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
| Name | Description |
| pktlist | The packet list to which the event is to be added. |
| listSize | The size, in bytes, of the packet list. |
| curPacket | A packet pointer returned by a previous call to
MIDIPacketListInit or MIDIPacketListAdd for this packet
list. |
| time | The new event's time. |
| nData | The length of the new event, in bytes. |
| data | The 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.
|