chromium/services/audio/public/cpp/sounds/audio_stream_handler.cc

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

#include "services/audio/public/cpp/sounds/audio_stream_handler.h"

#include <stdint.h>
#include <memory>
#include <string>
#include <string_view>
#include <utility>

#include "base/cancelable_callback.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "base/notreached.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/time/time.h"
#include "media/audio/audio_handler.h"
#include "media/audio/flac_audio_handler.h"
#include "media/audio/wav_audio_handler.h"
#include "media/base/audio_codecs.h"
#include "media/base/channel_layout.h"
#include "media/mojo/mojom/audio_output_stream.mojom.h"
#include "media/mojo/mojom/audio_stream_factory.mojom.h"
#include "services/audio/public/cpp/output_device.h"

namespace audio {

namespace {

// Volume percent.
const double kOutputVolumePercent =;

// Keep alive timeout for audio stream.
const int kKeepAliveMs =;

AudioStreamHandler::TestObserver* g_observer_for_testing =;

}  // namespace

class AudioStreamHandler::AudioStreamContainer
    : public media::AudioRendererSink::RenderCallback {};

AudioStreamHandler::AudioStreamHandler(
    SoundsManager::StreamFactoryBinder stream_factory_binder,
    std::string_view audio_data,
    media::AudioCodec codec) {}

AudioStreamHandler::~AudioStreamHandler() {}

bool AudioStreamHandler::IsInitialized() const {}

bool AudioStreamHandler::Play() {}

void AudioStreamHandler::Stop() {}

base::TimeDelta AudioStreamHandler::duration() const {}

// static
void AudioStreamHandler::SetObserverForTesting(TestObserver* observer) {}

}  // namespace audio