#include "services/audio/public/cpp/output_device.h"
#include <optional>
#include <utility>
#include "base/functional/bind.h"
#include "base/threading/thread_restrictions.h"
#include "media/audio/audio_output_device_thread_callback.h"
#include "media/mojo/mojom/audio_data_pipe.mojom.h"
#include "media/mojo/mojom/audio_logging.mojom.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/system/platform_handle.h"
namespace audio {
OutputDevice::OutputDevice(
mojo::PendingRemote<media::mojom::AudioStreamFactory> stream_factory,
const media::AudioParameters& params,
media::AudioRendererSink::RenderCallback* render_callback,
const std::string& device_id)
: … { … }
OutputDevice::~OutputDevice() { … }
void OutputDevice::Play() { … }
void OutputDevice::Pause() { … }
void OutputDevice::SetVolume(double volume) { … }
void OutputDevice::StreamCreated(
media::mojom::ReadWriteAudioDataPipePtr data_pipe) { … }
void OutputDevice::OnConnectionError() { … }
void OutputDevice::CleanUp() { … }
}