#include "media/audio/audio_debug_recording_manager.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
#include "base/threading/thread_checker.h"
namespace media {
namespace {
uint32_t g_next_stream_id = …;
}
AudioDebugRecordingManager::AudioDebugRecordingManager() { … }
AudioDebugRecordingManager::~AudioDebugRecordingManager() = default;
void AudioDebugRecordingManager::EnableDebugRecording(
CreateWavFileCallback create_file_callback) { … }
void AudioDebugRecordingManager::DisableDebugRecording() { … }
std::unique_ptr<AudioDebugRecorder>
AudioDebugRecordingManager::RegisterDebugRecordingSource(
AudioDebugRecordingStreamType stream_type,
const AudioParameters& params) { … }
void AudioDebugRecordingManager::UnregisterDebugRecordingSource(uint32_t id) { … }
std::unique_ptr<AudioDebugRecordingHelper>
AudioDebugRecordingManager::CreateAudioDebugRecordingHelper(
const AudioParameters& params,
base::OnceClosure on_destruction_closure) { … }
bool AudioDebugRecordingManager::IsDebugRecordingEnabled() { … }
}