• 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
Which is the correct way to set the packet->timestamp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which is the correct way to set the packet->timestamp?


  • Subject: Which is the correct way to set the packet->timestamp?
  • From: Stephen Kay <email@hidden>
  • Date: Mon, 09 Jul 2012 16:12:19 -0400
  • Thread-topic: Which is the correct way to set the packet->timestamp?

I'd like to verify that the following is the correct way to set the
timestamp, for real-time generation of MIDI data "now":

packet->timestamp = AudioGetCurrentHostTime();

... As opposed to:

packet->timestamp = 0;  // docs say this means "now"

If you use the second one, then MIDI Monitor by sNoize shows all events as

*** ZERO ***

Whereas using the first method shows them all with timestamps - which seems
the way that most MIDI coming from other apps ends up looking.

I used to use packet->timestamp = 0, but changed to the other method several
months ago, and now I'm wondering if it has possibly introduced some timing
fluctuations that didn't used to be there...

Thanks,
- Stephen

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



 _______________________________________________
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: Which is the correct way to set the packet->timestamp?
      • From: "email@hidden" <email@hidden>
References: 
 >Re: achieving very low latency (From: William Stewart <email@hidden>)

  • Prev by Date: Re: achieving very low latency
  • Next by Date: Re: achieving very low latency
  • Previous by thread: Re: achieving very low latency
  • Next by thread: Re: Which is the correct way to set the packet->timestamp?
  • Index(es):
    • Date
    • Thread