[gmpi] Re: Topic 6: Time representation

  • From: "Vincent Burel" <vincent.burel@xxxxxxxxxx>
  • To: <gmpi@xxxxxxxxxxxxx>
  • Date: Tue, 13 May 2003 09:19:52 +0200

some remarks:

-1- all values related to time must be signed (unsigned arithmetic is
boring, especially when we have to check the limit and work with
substraction)

-2- i don't want to make a computation to get a sample accurate time. so if
you want to represent sub-sample , please use two values :

__int64 NSample;
long       Nsubample; //in 1/10000000 sample for example since you like to
have a useless precision :-)

-3- if the time is related to the beginning of the frame , a long 32bit
signed value is enough and more practical. This takes always more time to
deal with 64bits integer.

-4- if you use floating point value to represent a time or whatever, please
don't think about a 64bit float . Many DSP does not know how to deal
whith this data type.


Vincent Burel



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