[gmpi] Re: New Reqs 3.8 - Events

  • From: Tim Hockin <thockin@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Thu, 18 Dec 2003 18:46:34 -0800

On Thu, Dec 18, 2003 at 11:55:11PM -0500, Michael Gogins wrote:
> Then I don't understand the distinction between absolute and relative
> timestamps. It seems to me that what I have described is absolute
> timestamps.

OK, let me explain it as I understand it:

No matter what, you always send the absolute timestamp at the start of the
process routine; call that the 'now' value.

Absolute timestamps put a 64-bit value on each event which represents the
absolute time of the event on the same timeline as 'now'.  An event which is
due 5 samples into the buffer has a timestamp of (now + 5).

Relative timestamps put a 32-bit value on each event which represents the
offset of the event relative to 'now'.  An event which is due 5 sampled into
the buffer has a timestamp of 5.

The difference is mostly a usage pattern.


----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: