xmidi.com
 

MIDIPacketList

struct  MIDIPacketList
{
  UInt32  numPackets;  
  MIDIPacket  packet[1];
};

A list of MIDI events being received from, or being sent to, one endpoint. Note that the packets, while defined as an array, may not be accessed as an array, since they are variable-length. To iterate through the packets in a packet list, use a loop such as:

MIDIPacket *packet = &packetList->packet[0];
for (int i = 0; i < packetList->numPackets; ++i) {
...
packet = MIDIPacketNext(packet);
}


Fields

NameDescription
numPacketsThe number of MIDIPackets in the list.
packetAn open-ended array of variable-length MIDIPackets.
{  Search xmidi.com:     }


[ home | docs | apps ]