Who owns MIDIPacketList memory supplied to MIDISend
Who owns MIDIPacketList memory supplied to MIDISend
- Subject: Who owns MIDIPacketList memory supplied to MIDISend
- From: Eric Kampman <email@hidden>
- Date: Sun, 05 Jun 2011 11:51:44 -0700
Got tired of wading through the apple mail list.
I have not found the answer to this. Typical code I've seen does the following:
(Phillip Wicker I think wrote the below:)
<QUOTE>
MIDIPacketList the_packet_list ;
MIDIPacketList* packet_list = &the_packet_list ;
MIDIPacket* current_packet = MIDIPacketListInit (packet_list) ;
</UNQUOTE>
OK, I get that -- it looks like a MIDIPacket defaults to having 256 bytes available.
But the_packet_list is on the stack, and it doesn't look to me like MIDISend is a synchronous (blocking) call (since the timestamp can be non-zero), so ... does the MIDI data get copied? The inference I think is that the data DOES get copied, otherwise the above code would often behave badly.
Thanks,
Eric Kampman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden