• 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: nData argument in MidiPacketListAdd()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nData argument in MidiPacketListAdd()


  • Subject: Re: nData argument in MidiPacketListAdd()
  • From: email@hidden
  • Date: Wed, 25 Sep 2002 06:13:07 -0400

Yes.

MIDIPacketListAdd() "packs" the data into the packetlist you passed as the first
param (it actually builds a MIDIPacket from your parameters and packs that in.)
So what you tell it to pack is what it'll pack. 3 bytes in = 3 bytes out (remember that
...Add() has no idea how long your array might be so it trusts your nData to be correct.)

HTH,

Robert.

On Wednesday, September 25, 2002, at 05:37 AM, Doug McKenzie wrote:

If you supply a value that is less than the actual length of "data" for the "nData" argument of the MidiPacketListAdd() function, will the data get truncated?

eg. say I let data = { F0, 42, 16, 12}
but I use 3 for the nData argument.
Then I send the packet list.
Will the midi being sent look like { F0, 42, 16 } ?

Thanks in advance :)

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
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.
_______________________________________________
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.

References: 
 >nData argument in MidiPacketListAdd() (From: "Doug McKenzie" <email@hidden>)

  • Prev by Date: nData argument in MidiPacketListAdd()
  • Next by Date: cant load resources in AudioUnits
  • Previous by thread: nData argument in MidiPacketListAdd()
  • Next by thread: cant load resources in AudioUnits
  • Index(es):
    • Date
    • Thread