• 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
Who owns MIDIPacketList memory supplied to MIDISend
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Who owns MIDIPacketList memory supplied to MIDISend
      • From: Doug Wyatt <email@hidden>
    • Re: Who owns MIDIPacketList memory supplied to MIDISend
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: Re: Create MIDI device programmaticly without a MIDIDriver bundle
  • Next by Date: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • Previous by thread: Re: Create MIDI device programmaticly without a MIDIDriver bundle
  • Next by thread: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • Index(es):
    • Date
    • Thread