• 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
Calling MIDIPacketListAdd from NSTimer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling MIDIPacketListAdd from NSTimer


  • Subject: Calling MIDIPacketListAdd from NSTimer
  • From: Tom Jeffries <email@hidden>
  • Date: Wed, 05 Oct 2011 12:51:44 -0700

I'm sending a string of MIDI packets using MIDIPacketListAdd. I want to change the packets dynamically during playback, so I'm using a NSTimer to add each packet before the scheduled time the packet should go out.

The code works perfectly, the address of the current packet is updated correctly, I have verified that all the data is correct.  However, no MIDI data is being sent when MIDIPacketListAdd is called from the timer.  I add the first two packets before starting the timer to make sure that the packets are sent to MIDIPacketListAdd before they need to be played.

I'm very puzzled.  Any suggestions?

Thanks, Tom Jeffries
 _______________________________________________
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: Calling MIDIPacketListAdd from NSTimer
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: real time pitch shift
  • Next by Date: MIDI iPad1 vs iPad2
  • Previous by thread: Re: real time pitch shift
  • Next by thread: Re: Calling MIDIPacketListAdd from NSTimer
  • Index(es):
    • Date
    • Thread