Re: MIDIPacketList info
Re: MIDIPacketList info
- Subject: Re: MIDIPacketList info
- From: Bill Dozier <email@hidden>
- Date: Fri, 10 Oct 2003 08:41:13 -0500
On Thursday, October 9, 2003, at 05:58 PM, Doug Wyatt wrote:
On Oct 9, 2003, at 1:58 PM, Gary Scavone wrote:
Is there more documentation about MIDIPacketLists than that contained
in the CoreAudio PDF document from May 2001?
The comments in the header ... and in this list's archives ...
After 2.5 years, one would hope for better than this. I hope the
Panther release provides an improvement.
If not, does that
buffer "define" the maximum size of all MIDIPackets in the list?
Yes, you can't make the list larger than the buffer.
Since the init and add functions are opaque, it's not completely
obvious how much overhead there is in the packet list. I.e., exactly
how much more memory do I need to allocate above sizeof(MIDIPacketList)
+ numberOfPackets * sizeof(MIDIPacket) + totalBytesInMyMessages? The
only real documentation for this point is some example code where a WAG
is made of the message size.
And
what happens if the buffer is a local variable, a packet with a future
time stamp is sent, and the local variable is deleted when the
function call returns (for example, if I wrote a sendMessage()
function which creates a PacketList, fills it with a future
time-stamped Packet, and returns)?
Not a problem, the packetlist gets copied.
Why is this not clearly stated in the documentation for the
MIDIServices functions? If you think about for a minute, this is how it
has to work, but someone could have typed one more sentence to make it
clear.
Bill Dozier
_______________________________________________
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.