Re: Example Code for CoreMidi OUT
Re: Example Code for CoreMidi OUT
- Subject: Re: Example Code for CoreMidi OUT
- From: Robert Grant <email@hidden>
- Date: Wed, 11 Dec 2002 17:19:52 -0500
On Wednesday, December 11, 2002, at 05:20 PM, Angelo Fraietta wrote:
Robert Grant wrote:
Hi Mark,
It's actually pretty straight forward:
MIDIPacketList pktlist;
MIDIPacket* packet;
packet = MIDIPacketListInit(&pktlist);
packet = MIDIPacketListAdd( &pktlist,
sizeof(MIDIPacketList),
packet,
/* time stamp */, // I typically use
AudioGetCurrentHostTime()
/* size of msg in bytes */,
/* actual MIDI msg */);
So this means that I just need to put the apropriate bytes in the msg
parameter with the size in /* size of msg in bytes */
parameter? There is no long and short midi message types like in
Windows?
Windows? What's that? ;-) Right - it's just a block of MIDI bytes.
Additionally, am I allowed to delete the memory pointed to in the msg
parameter immediately after the function returns?
Yep. The bytes are copied into the packet.
Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.