#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/audio_pull_fifo.h"
#include <algorithm>
#include "base/check_op.h"
#include "media/base/audio_bus.h"
namespace media {
AudioPullFifo::AudioPullFifo(int channels, int frames, ReadCB read_cb)
: … { … }
AudioPullFifo::~AudioPullFifo() = default;
void AudioPullFifo::Consume(AudioBus* destination, int frames_to_consume) { … }
void AudioPullFifo::Clear() { … }
int AudioPullFifo::SizeInFrames() const { … }
int AudioPullFifo::ReadFromFifo(AudioBus* destination,
int frames_to_provide,
int write_pos) { … }
}