View Single Post
Old 20th September 2002, 11:08   #70  |  Link
Suiryc
Registered User
 
Join Date: Oct 2001
Location: France
Posts: 517
Quote:
Originally posted by TobiasWaldvogel
Code:
             (granulepos-packet_len) * sh.time_unit
timestamp = -------------------------------- micros
                10 * sh.samples_per_unit
where packetlen is in samples
This is the beginning time of the Packet. (the formula I posted was a general one i.e. I was getting the timestamp of sample at position granulepos, and not directly the beginning timestamp of a Packet).
This is what I presently use - in another way - for sorting Pages before writing them to file.
Suiryc is offline   Reply With Quote