Re: nData argument in MidiPacketListAdd()
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.