#include "media/base/audio_discard_helper.h"
#include <algorithm>
#include "base/logging.h"
#include "media/base/audio_buffer.h"
namespace media {
static void WarnOnNonMonotonicTimestamps(base::TimeDelta last_timestamp,
base::TimeDelta current_timestamp) { … }
AudioDiscardHelper::AudioDiscardHelper(int sample_rate,
size_t decoder_delay,
bool delayed_discard)
: … { … }
AudioDiscardHelper::~AudioDiscardHelper() = default;
size_t AudioDiscardHelper::TimeDeltaToFrames(base::TimeDelta duration) const { … }
void AudioDiscardHelper::Reset(size_t initial_discard) { … }
bool AudioDiscardHelper::ProcessBuffers(
const DecoderBuffer::TimeInfo& time_info,
AudioBuffer* decoded_buffer) { … }
}