#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/audio/test/fake_loopback_group_member.h"
#include <algorithm>
#include <cmath>
#include <numbers>
#include <string>
#include "media/audio/audio_device_description.h"
#include "media/base/audio_bus.h"
namespace audio {
FakeLoopbackGroupMember::FakeLoopbackGroupMember(
const media::AudioParameters& params)
: … { … }
FakeLoopbackGroupMember::~FakeLoopbackGroupMember() = default;
void FakeLoopbackGroupMember::SetChannelTone(int ch, double frequency) { … }
void FakeLoopbackGroupMember::SetVolume(double volume) { … }
void FakeLoopbackGroupMember::RenderMoreAudio(
base::TimeTicks output_timestamp) { … }
const media::AudioParameters& FakeLoopbackGroupMember::GetAudioParameters()
const { … }
void FakeLoopbackGroupMember::StartSnooping(Snooper* snooper) { … }
void FakeLoopbackGroupMember::StopSnooping(Snooper* snooper) { … }
void FakeLoopbackGroupMember::StartMuting() { … }
void FakeLoopbackGroupMember::StopMuting() { … }
}