#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/fake_audio_render_callback.h"
#include <algorithm>
#include <numbers>
#include "base/time/time.h"
#include "media/base/audio_timestamp_helper.h"
namespace media {
FakeAudioRenderCallback::FakeAudioRenderCallback(double step, int sample_rate)
: … { … }
FakeAudioRenderCallback::~FakeAudioRenderCallback() = default;
int FakeAudioRenderCallback::Render(base::TimeDelta delay,
base::TimeTicks delay_timestamp,
const AudioGlitchInfo& glitch_info,
AudioBus* audio_bus) { … }
double FakeAudioRenderCallback::ProvideInput(
AudioBus* audio_bus,
uint32_t frames_delayed,
const AudioGlitchInfo& glitch_info) { … }
int FakeAudioRenderCallback::RenderInternal(AudioBus* audio_bus,
base::TimeDelta delay,
double volume) { … }
}