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

Proper use of MIDIPacketListAdd


  • Subject: Proper use of MIDIPacketListAdd
  • From: Pier <email@hidden>
  • Date: Wed, 10 Apr 2013 18:12:12 +0800

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

  • Follow-Ups:
    • Re: Proper use of MIDIPacketListAdd
      • From: Douglas Scott <email@hidden>
  • Prev by Date: CoreMidi wifi error on iOS
  • Next by Date: Re: Proper use of MIDIPacketListAdd
  • Previous by thread: CoreMidi wifi error on iOS
  • Next by thread: Re: Proper use of MIDIPacketListAdd
  • Index(es):
    • Date
    • Thread