#include "media/base/silent_sink_suspender.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/audio_glitch_info.h"
namespace media {
SilentSinkSuspender::SilentSinkSuspender(
AudioRendererSink::RenderCallback* callback,
base::TimeDelta silence_timeout,
const AudioParameters& params,
scoped_refptr<AudioRendererSink> sink,
scoped_refptr<base::SingleThreadTaskRunner> worker)
: … { … }
SilentSinkSuspender::~SilentSinkSuspender() { … }
int SilentSinkSuspender::Render(base::TimeDelta delay,
base::TimeTicks delay_timestamp,
const AudioGlitchInfo& glitch_info,
AudioBus* dest) { … }
void SilentSinkSuspender::OnRenderError() { … }
void SilentSinkSuspender::OnPaused() { … }
void SilentSinkSuspender::SetDetectSilence(bool detect_silence) { … }
bool SilentSinkSuspender::IsUsingFakeSinkForTesting() { … }
void SilentSinkSuspender::TransitionSinks(bool use_fake_sink) { … }
}