[gmpi] Re: Topic 6: Time representation

  • From: "Frederick Umminger" <Frederick_Umminger@xxxxxxxxxxxxxx>
  • To: <gmpi@xxxxxxxxxxxxx>
  • Date: Tue, 13 May 2003 13:00:05 -0700


-----Original Message-----
From: Tim Hockin [mailto:thockin@xxxxxxxxxx]
>>
>>      Well, I think that time should be a signed 64 bit int, so you can 
>> represent negative offsets and such. The extra 1 bit of range doesn't 
>> add too much.
>>
>
>That pre-supposes that we use offsets, which I disagree with :)  I think
>timestamps should be unsigned and wrapping should be handled cleanly in
>macros.  There is no such thing as negative time.

There may be no negative time, but there will be negative time differences.
Performing arithmetic on times will be a lot easier and less error-prone if
signed numbers are used.

-Frederick Umminger

DISCLAIMER: Nothing I say on this list represents any official view of 
Digidesign.
I am speaking only as an interested individual.

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