#include "third_party/blink/renderer/modules/media/audio/audio_renderer_mixer.h"
#include <cmath>
#include "base/check_op.h"
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "media/base/audio_timestamp_helper.h"
#include "third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_input.h"
namespace blink {
constexpr base::TimeDelta kPauseDelay = …;
AudioRendererMixer::AudioRendererMixer(
const media::AudioParameters& output_params,
scoped_refptr<media::AudioRendererSink> sink)
: … { … }
AudioRendererMixer::~AudioRendererMixer() { … }
void AudioRendererMixer::AddMixerInput(
const media::AudioParameters& input_params,
media::AudioConverter::InputCallback* input) { … }
void AudioRendererMixer::RemoveMixerInput(
const media::AudioParameters& input_params,
media::AudioConverter::InputCallback* input) { … }
void AudioRendererMixer::AddErrorCallback(AudioRendererMixerInput* input) { … }
void AudioRendererMixer::RemoveErrorCallback(AudioRendererMixerInput* input) { … }
bool AudioRendererMixer::CurrentThreadIsRenderingThread() { … }
void AudioRendererMixer::SetPauseDelayForTesting(base::TimeDelta delay) { … }
bool AudioRendererMixer::HasSinkError() { … }
int AudioRendererMixer::Render(base::TimeDelta delay,
base::TimeTicks delay_timestamp,
const media::AudioGlitchInfo& glitch_info,
media::AudioBus* audio_bus) { … }
void AudioRendererMixer::OnRenderError() { … }
}