chromium/remoting/client/audio/audio_player.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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"

// If queue grows bigger than 150ms we start dropping packets.
const int kMaxQueueLatencyMs =;

namespace remoting {

// TODO(nicholss): Update legacy audio player to use new audio buffer code.
AudioPlayer::AudioPlayer()
    :{}

AudioPlayer::~AudioPlayer() = default;

void AudioPlayer::ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
                                     base::OnceClosure done) {}

// static
void AudioPlayer::AudioPlayerCallback(void* samples,
                                      uint32_t buffer_size,
                                      void* data) {}

void AudioPlayer::ResetQueue() {}

void AudioPlayer::FillWithSamples(void* samples, uint32_t buffer_size) {}

}  // namespace remoting