• 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
Re: Proper use of MIDIPacketListAdd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper use of MIDIPacketListAdd


  • Subject: Re: Proper use of MIDIPacketListAdd
  • From: Douglas Scott <email@hidden>
  • Date: Wed, 10 Apr 2013 10:20:24 -0700

You need to make sure in the second, third, etc. calls, the timestamp argument to MIDIPacketListAdd is greater than the timestamp of currentPacket, otherwise the routine assumes you want to try stuffing all the information in one packet.  I cannot be sure that is your problem, but it is a start.

-DS

On Apr 10, 2013, at 3:12 AM, Pier <email@hidden> wrote:

Hi, 

I'm trying to use CoreAudio's  MIDIPacketListAdd by doing this : 

    MIDIPacketListAdd(packetList, PACKETLIST_SIZE, currentPacket, mach_absolute_time, len, data);

I was thinking of calling the method multiple times before sending it out, so that my packetList will have > 1 packet in it. 
However when I do so the numPackets never increases, and what I am getting is packetList->packet[0] with the an ever increasing packet[0].data.

1) What's the correct way to use this method? I've looked at several examples, including the one from "Learning Core Audio" - they all seem to be sending just one packet. 

2) Is there any performance improvement if I pack multiple packets in 1 packet list over sending 1 packet list with 1 packet multiple times? 

Thanks, appreciate any help regarding this. 

Pier.


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
References: 
 >Proper use of MIDIPacketListAdd (From: Pier <email@hidden>)

  • Prev by Date: Proper use of MIDIPacketListAdd
  • Next by Date: Re: Coreaudio-api Digest, Vol 10, Issue 120
  • Previous by thread: Proper use of MIDIPacketListAdd
  • Next by thread: Re: Coreaudio-api Digest, Vol 10, Issue 120
  • Index(es):
    • Date
    • Thread