#include "media/audio/fake_audio_manager.h"
#include <algorithm>
#include <utility>
#include "media/base/audio_parameters.h"
#include "media/base/channel_layout.h"
namespace media {
namespace {
const int kDefaultInputBufferSize = …;
const int kDefaultSampleRate = …;
}
FakeAudioManager::FakeAudioManager(std::unique_ptr<AudioThread> audio_thread,
AudioLogFactory* audio_log_factory)
: … { … }
FakeAudioManager::~FakeAudioManager() = default;
bool FakeAudioManager::HasAudioOutputDevices() { … }
bool FakeAudioManager::HasAudioInputDevices() { … }
const char* FakeAudioManager::GetName() { … }
AudioOutputStream* FakeAudioManager::MakeLinearOutputStream(
const AudioParameters& params,
const LogCallback& log_callback) { … }
AudioOutputStream* FakeAudioManager::MakeLowLatencyOutputStream(
const AudioParameters& params,
const std::string& device_id,
const LogCallback& log_callback) { … }
AudioInputStream* FakeAudioManager::MakeLinearInputStream(
const AudioParameters& params,
const std::string& device_id,
const LogCallback& log_callback) { … }
AudioInputStream* FakeAudioManager::MakeLowLatencyInputStream(
const AudioParameters& params,
const std::string& device_id,
const LogCallback& log_callback) { … }
AudioParameters FakeAudioManager::GetPreferredOutputStreamParameters(
const std::string& output_device_id,
const AudioParameters& input_params) { … }
AudioParameters FakeAudioManager::GetInputStreamParameters(
const std::string& device_id) { … }
}