• 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
Re: Example Code for CoreMidi OUT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Example Code for CoreMidi OUT
      • From: Robert Grant <email@hidden>
References: 
 >Re: Example Code for CoreMidi OUT (From: Robert Grant <email@hidden>)

  • Prev by Date: Re: Property plugins
  • Next by Date: Re: Example Code for CoreMidi OUT
  • Previous by thread: Re: Example Code for CoreMidi OUT
  • Next by thread: Re: Example Code for CoreMidi OUT
  • Index(es):
    • Date
    • Thread