Re: Who owns MIDIPacketList memory supplied to MIDISend
Re: Who owns MIDIPacketList memory supplied to MIDISend
- Subject: Re: Who owns MIDIPacketList memory supplied to MIDISend
- From: Doug Wyatt <email@hidden>
- Date: Mon, 6 Jun 2011 13:04:57 -0700
On Jun 5, 2011, at 11:51 , Eric Kampman wrote:
> 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?
yes, it is copied (into memory that is shared with the server process). feel free to allocate on the stack.
> The inference I think is that the data DOES get copied, otherwise the above code would often behave badly.
_______________________________________________
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