Which is the correct way to set the packet->timestamp?
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