#include "services/audio/public/cpp/sounds/sounds_manager.h"
#include <memory>
#include <string_view>
#include <utility>
#include <vector>
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "media/base/audio_codecs.h"
#include "services/audio/public/cpp/sounds/audio_stream_handler.h"
namespace audio {
namespace {
SoundsManager* g_instance = …;
bool g_initialized_for_testing = …;
class SoundsManagerImpl : public SoundsManager { … };
bool SoundsManagerImpl::Initialize(SoundKey key,
std::string_view data,
media::AudioCodec codec) { … }
bool SoundsManagerImpl::Play(SoundKey key) { … }
bool SoundsManagerImpl::Stop(SoundKey key) { … }
base::TimeDelta SoundsManagerImpl::GetDuration(SoundKey key) { … }
AudioStreamHandler* SoundsManagerImpl::GetHandler(SoundKey key) { … }
}
SoundsManager::SoundsManager() = default;
SoundsManager::~SoundsManager() { … }
void SoundsManager::Create(StreamFactoryBinder stream_factory_binder) { … }
void SoundsManager::Shutdown() { … }
SoundsManager* SoundsManager::Get() { … }
void SoundsManager::InitializeForTesting(SoundsManager* manager) { … }
}