#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/fake_audio_renderer_sink.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/task/sequenced_task_runner.h"
#include "media/base/audio_glitch_info.h"
namespace media {
FakeAudioRendererSink::FakeAudioRendererSink()
: … { … }
FakeAudioRendererSink::FakeAudioRendererSink(
const AudioParameters& hardware_params)
: … { … }
FakeAudioRendererSink::~FakeAudioRendererSink() { … }
void FakeAudioRendererSink::Initialize(const AudioParameters& params,
RenderCallback* callback) { … }
void FakeAudioRendererSink::Start() { … }
void FakeAudioRendererSink::Stop() { … }
void FakeAudioRendererSink::Flush() { … }
void FakeAudioRendererSink::Pause() { … }
void FakeAudioRendererSink::Play() { … }
bool FakeAudioRendererSink::SetVolume(double volume) { … }
OutputDeviceInfo FakeAudioRendererSink::GetOutputDeviceInfo() { … }
void FakeAudioRendererSink::GetOutputDeviceInfoAsync(
OutputDeviceInfoCB info_cb) { … }
bool FakeAudioRendererSink::IsOptimizedForHardwareParameters() { … }
bool FakeAudioRendererSink::CurrentThreadIsRenderingThread() { … }
bool FakeAudioRendererSink::Render(AudioBus* dest,
base::TimeDelta delay,
int* frames_written) { … }
void FakeAudioRendererSink::OnRenderError() { … }
void FakeAudioRendererSink::SetIsOptimizedForHardwareParameters(bool value) { … }
void FakeAudioRendererSink::ChangeState(State new_state) { … }
}