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.