#include "modules/audio_processing/test/simulator_buffers.h"
#include "modules/audio_processing/test/audio_buffer_tools.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace test {
SimulatorBuffers::SimulatorBuffers(int render_input_sample_rate_hz,
int capture_input_sample_rate_hz,
int render_output_sample_rate_hz,
int capture_output_sample_rate_hz,
size_t num_render_input_channels,
size_t num_capture_input_channels,
size_t num_render_output_channels,
size_t num_capture_output_channels) { … }
SimulatorBuffers::~SimulatorBuffers() = default;
void SimulatorBuffers::CreateConfigAndBuffer(
int sample_rate_hz,
size_t num_channels,
Random* rand_gen,
std::unique_ptr<AudioBuffer>* buffer,
StreamConfig* config,
std::vector<float*>* buffer_data,
std::vector<float>* buffer_data_samples) { … }
void SimulatorBuffers::UpdateInputBuffers() { … }
}
}