[gmpi] Re: New Reqs 3.8 - Events

  • From: Chris Grigg <gmpi-public@xxxxxxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Sat, 20 Dec 2003 17:57:01 -0800

Michael said:

 I think the host would need to know, and the plugins would like to
 know, the sample frame counting from 0 as start of performance to
 the first sample frame of the current buffer. Then it would make
 sense for events to be timestamped as an offset from that value.
 Adding the two would give the exact time in sample frames of the
 event counting from start of performance.


To which:

1) David said:
Note that you won't be able to count on 0 meaning anything more than
"the start of something". Hosts that keep audio running at all time
will simply start counting when you first start the host, and won't
stop or reset until you restart the host, reinit the audio subsystem
or something.

and 2) Paul said:
i don't think this is general enough. if you are using GMPI in a "live
mixing" situation, there really is no "song beginning". yet you may
still have events being delivered to plugins, and they need
timestamps.


For my education: In systems where the sample clock just runs forever, then are hosts and plugs written so as to correctly handle counter rollover? Or is there an assumption that no host will ever run that long (or initialize high enough that rollover is a risk)?

-- Chris G.

----------------------------------------------------------------------
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: