Sending a single CC MIDI message
Sending a single CC MIDI message
- Subject: Sending a single CC MIDI message
- From: Andrew Garber <email@hidden>
- Date: Mon, 13 Sep 2004 01:16:06 -0700
Can I do the following?
Byte buffer[17];
MIDIPacketList *packetList = (MIDIPacketList *)buffer;
MIDIPacket *packet = &(packetList->packet[0]);
packetList->numPackets = 1;
packet->timeStamp = 0;
packet->length = 3;
packet->data[0] = 0xB1;
packet->data[1] = 0x22;
packet->data[2] = 52;
I figure that since MIDIPacket's data member is defined as Byte
data[256], I can save some memory by using a 17-byte buffer instead.
Any thoughts/comments/suggestions?
Thanks,
Andrew Garber
PS. Thanks goes to Doug Wyatt for "Re: Buffer size for
MIDIPacketListAdd" posted on Sept. 4th.
_______________________________________________
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