#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/client/audio/audio_player.h"
#include <algorithm>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
const int kMaxQueueLatencyMs = …;
namespace remoting {
AudioPlayer::AudioPlayer()
: … { … }
AudioPlayer::~AudioPlayer() = default;
void AudioPlayer::ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
base::OnceClosure done) { … }
void AudioPlayer::AudioPlayerCallback(void* samples,
uint32_t buffer_size,
void* data) { … }
void AudioPlayer::ResetQueue() { … }
void AudioPlayer::FillWithSamples(void* samples, uint32_t buffer_size) { … }
}