Re: Example Code for CoreMidi OUT
Re: Example Code for CoreMidi OUT
- Subject: Re: Example Code for CoreMidi OUT
- From: Angelo Fraietta <email@hidden>
- Date: Thu, 12 Dec 2002 09:20:10 +1100
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?
Additionally, am I allowed to delete the memory pointed to in the msg
parameter immediately after the function returns?
--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
http://www.users.bigpond.com/angelo_f/
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
_______________________________________________
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.