#include "media/audio/audio_manager.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/power_monitor/power_monitor.h"
#include "base/task/single_thread_task_runner.h"
#include "base/thread_annotations.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "media/audio/fake_audio_log_factory.h"
#include "media/base/media_switches.h"
#if BUILDFLAG(IS_WIN)
#include "base/win/scoped_com_initializer.h"
#endif
namespace media {
namespace {
AudioManager* g_last_created = …;
class AudioManagerHelper { … };
AudioManagerHelper* GetHelper() { … }
}
std::unique_ptr<AudioManager> CreateAudioManager(
std::unique_ptr<AudioThread> audio_thread,
AudioLogFactory* audio_log_factory);
void AudioManager::SetMaxStreamCountForTesting(int max_input, int max_output) { … }
AudioManager::AudioManager(std::unique_ptr<AudioThread> audio_thread)
: … { … }
AudioManager::~AudioManager() { … }
std::unique_ptr<AudioManager> AudioManager::Create(
std::unique_ptr<AudioThread> audio_thread,
AudioLogFactory* audio_log_factory) { … }
std::unique_ptr<AudioManager> AudioManager::CreateForTesting(
std::unique_ptr<AudioThread> audio_thread) { … }
void AudioManager::SetGlobalAppName(const std::string& app_name) { … }
const std::string& AudioManager::GetGlobalAppName() { … }
AudioManager* AudioManager::Get() { … }
bool AudioManager::Shutdown() { … }
void AudioManager::TraceAmplitudePeak(bool trace_start) { … }
}