#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stdint.h>
#include <algorithm>
#include "media/base/audio_block_fifo.h"
#include "base/check_op.h"
#include "base/trace_event/trace_event.h"
namespace media {
AudioBlockFifo::AudioBlockFifo(int channels, int frames, int blocks)
: … { … }
AudioBlockFifo::~AudioBlockFifo() = default;
void AudioBlockFifo::Push(const void* source,
int frames,
int bytes_per_sample) { … }
void AudioBlockFifo::PushSilence(int frames) { … }
const AudioBus* AudioBlockFifo::Consume() { … }
void AudioBlockFifo::Clear() { … }
int AudioBlockFifo::GetAvailableFrames() const { … }
int AudioBlockFifo::GetUnfilledFrames() const { … }
void AudioBlockFifo::IncreaseCapacity(int blocks) { … }
void AudioBlockFifo::PushInternal(const void* source,
int frames,
int bytes_per_sample) { … }
}