Multiple events per packet
Multiple events per packet
- Subject: Multiple events per packet
- From: "X. J. Scott" <email@hidden>
- Date: Mon, 13 Sep 2004 18:54:31 -0400
on 9/13/04 5:25 PM, Doug Wyatt wrote:
> Multiple events per packet ARE allowed. You WILL receive them (e.g.
> from a USB MIDI interface) and you may create them.
Yikes.
It's not been a problem so far, but I'll go and fix it. What devices and/or
software are known to pack multiple events in a MIDIPacket?
So:
for (int i = 0; i < packetList->numPackets; ++i)
{
...
parseMIDIInput(srcConnRefCon, packet->data, packet->length);
packet = MIDIPacketNext(packet);
}
-- where my parseMIDIInput() expects a single MIDI event -- won't cut it,
and I need an inner loop here.
OK...
>From the current documentation for struct MIDIPacket:
"data -- A variable-length *stream* of MIDI messages [<- note plural] ..."
I guess I can't blame the documentation on this one. :-(
Thanks, Doug for the clarification. And thanks Alex for asking the question.
- Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden