• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sending a single CC MIDI message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: email@hidden
  • Next by Date: Resizing Windows vs. Resizing Root Control
  • Previous by thread: email@hidden
  • Next by thread: Resizing Windows vs. Resizing Root Control
  • Index(es):
    • Date
    • Thread