#include "media/audio/null_audio_sink.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/audio_glitch_info.h"
#include "media/base/audio_hash.h"
#include "media/base/fake_audio_worker.h"
namespace media {
NullAudioSink::NullAudioSink(
const scoped_refptr<base::SequencedTaskRunner>& task_runner)
: … { … }
NullAudioSink::~NullAudioSink() { … }
void NullAudioSink::Initialize(const AudioParameters& params,
RenderCallback* callback) { … }
void NullAudioSink::Start() { … }
void NullAudioSink::Stop() { … }
void NullAudioSink::Play() { … }
void NullAudioSink::Pause() { … }
void NullAudioSink::Flush() { … }
bool NullAudioSink::SetVolume(double volume) { … }
OutputDeviceInfo NullAudioSink::GetOutputDeviceInfo() { … }
void NullAudioSink::GetOutputDeviceInfoAsync(OutputDeviceInfoCB info_cb) { … }
bool NullAudioSink::IsOptimizedForHardwareParameters() { … }
bool NullAudioSink::CurrentThreadIsRenderingThread() { … }
void NullAudioSink::SwitchOutputDevice(const std::string& device_id,
OutputDeviceStatusCB callback) { … }
void NullAudioSink::CallRender(base::TimeTicks ideal_time,
base::TimeTicks now) { … }
void NullAudioSink::StartAudioHashForTesting() { … }
const AudioHash& NullAudioSink::GetAudioHashForTesting() const { … }
}