#include "services/audio/public/cpp/debug_recording_session.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "media/audio/audio_debug_recording_manager.h"
namespace audio {
namespace {
#if BUILDFLAG(IS_WIN)
#define NumberToStringType …
#else
#define NumberToStringType …
#endif
const base::FilePath::CharType* StreamTypeToStringType(
media::AudioDebugRecordingStreamType stream_type) { … }
void CreateFile(base::FilePath file_path,
base::OnceCallback<void(base::File)> reply_callback) { … }
}
DebugRecordingSession::DebugRecordingFileProvider::DebugRecordingFileProvider(
mojo::PendingReceiver<mojom::DebugRecordingFileProvider> receiver,
const base::FilePath& file_name_base)
: … { … }
DebugRecordingSession::DebugRecordingFileProvider::
~DebugRecordingFileProvider() = default;
void DebugRecordingSession::DebugRecordingFileProvider::CreateWavFile(
media::AudioDebugRecordingStreamType stream_type,
uint32_t id,
CreateWavFileCallback reply_callback) { … }
void DebugRecordingSession::DebugRecordingFileProvider::CreateAecdumpFile(
uint32_t id,
CreateAecdumpFileCallback reply_callback) { … }
DebugRecordingSession::DebugRecordingSession(
const base::FilePath& file_name_base,
mojo::PendingRemote<mojom::DebugRecording> debug_recording) { … }
DebugRecordingSession::~DebugRecordingSession() { … }
}