#include "media/base/audio_timestamp_helper.h"
#include <cmath>
#include "base/check_op.h"
#include "media/base/timestamp_constants.h"
namespace media {
base::TimeDelta AudioTimestampHelper::FramesToTime(int64_t frames,
int samples_per_second) { … }
int64_t AudioTimestampHelper::TimeToFrames(base::TimeDelta time,
int samples_per_second) { … }
AudioTimestampHelper::AudioTimestampHelper(int samples_per_second)
: … { … }
void AudioTimestampHelper::SetBaseTimestamp(base::TimeDelta base_timestamp) { … }
void AudioTimestampHelper::AddFrames(int frame_count) { … }
base::TimeDelta AudioTimestampHelper::GetTimestamp() const { … }
base::TimeDelta AudioTimestampHelper::GetFrameDuration(int frame_count) const { … }
int64_t AudioTimestampHelper::GetFramesToTarget(base::TimeDelta target) const { … }
void AudioTimestampHelper::Reset() { … }
base::TimeDelta AudioTimestampHelper::ComputeTimestamp(
int64_t frame_count) const { … }
}