#include "services/audio/debug_recording.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "media/audio/aecdump_recording_manager.h"
#include "media/audio/audio_debug_recording_manager.h"
#include "media/audio/audio_manager.h"
namespace audio {
DebugRecording::DebugRecording(
mojo::PendingReceiver<mojom::DebugRecording> receiver,
media::AudioManager* audio_manager,
media::AecdumpRecordingManager* aecdump_recording_manager)
: … { … }
DebugRecording::~DebugRecording() { … }
void DebugRecording::Enable(
mojo::PendingRemote<mojom::DebugRecordingFileProvider>
recording_file_provider) { … }
void DebugRecording::Disable() { … }
void DebugRecording::CreateWavFile(
media::AudioDebugRecordingStreamType stream_type,
uint32_t id,
mojom::DebugRecordingFileProvider::CreateWavFileCallback reply_callback) { … }
void DebugRecording::CreateAecdumpFile(
uint32_t id,
mojom::DebugRecordingFileProvider::CreateAecdumpFileCallback
reply_callback) { … }
bool DebugRecording::IsEnabled() { … }
}