5 #ifndef PACKAGER_MEDIA_BASE_AUDIO_TIMESTAMP_HELPER_H_
6 #define PACKAGER_MEDIA_BASE_AUDIO_TIMESTAMP_HELPER_H_
10 #include <packager/macros/classes.h>
35 void SetBaseTimestamp(int64_t base_timestamp);
37 int64_t base_timestamp()
const;
38 int64_t frame_count()
const {
return frame_count_; }
43 void AddFrames(int64_t frame_count);
47 int64_t GetTimestamp()
const;
53 int64_t GetFrameDuration(int64_t frame_count)
const;
57 int64_t GetFramesToTarget(int64_t target)
const;
60 int64_t ComputeTimestamp(int64_t frame_count)
const;
62 double ticks_per_frame_;
64 int64_t base_timestamp_;
All the methods that are virtual are virtual for mocking.