#include "media/audio/audio_debug_recording_helper.h"
#include <memory>
#include <utility>
#include "base/files/file.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/sequence_checker.h"
#include "base/synchronization/lock.h"
#include "base/task/bind_post_task.h"
#include "media/audio/audio_debug_file_writer.h"
#include "media/base/audio_bus.h"
namespace media {
AudioDebugRecordingHelper::AudioDebugRecordingHelper(
const AudioParameters& params,
base::OnceClosure on_destruction_closure)
: … { … }
AudioDebugRecordingHelper::~AudioDebugRecordingHelper() { … }
void AudioDebugRecordingHelper::EnableDebugRecording(
AudioDebugRecordingStreamType stream_type,
uint32_t id,
CreateWavFileCallback create_file_callback) { … }
void AudioDebugRecordingHelper::StartDebugRecordingToFile(base::File file) { … }
void AudioDebugRecordingHelper::DisableDebugRecording() { … }
void AudioDebugRecordingHelper::OnData(const AudioBus* source) { … }
AudioDebugFileWriter::Ptr AudioDebugRecordingHelper::CreateAudioDebugFileWriter(
const AudioParameters& params,
base::File file) { … }
void AudioDebugRecordingHelper::WillDestroyAudioDebugFileWriter() { … }
}