#include "media/base/audio_buffer_queue.h"
#include <algorithm>
#include "base/check_op.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_timestamp_helper.h"
namespace media {
AudioBufferQueue::AudioBufferQueue() { … }
AudioBufferQueue::~AudioBufferQueue() = default;
void AudioBufferQueue::Clear() { … }
void AudioBufferQueue::Append(scoped_refptr<AudioBuffer> buffer_in) { … }
int AudioBufferQueue::ReadFrames(int frames,
int dest_frame_offset,
AudioBus* dest) { … }
int AudioBufferQueue::PeekFrames(int frames,
int source_frame_offset,
int dest_frame_offset,
AudioBus* dest) { … }
void AudioBufferQueue::SeekFrames(int frames) { … }
std::optional<base::TimeDelta> AudioBufferQueue::FrontTimestamp() const { … }
int AudioBufferQueue::InternalRead(int frames,
bool advance_position,
int source_frame_offset,
int dest_frame_offset,
AudioBus* dest) { … }
}