#include "modules/audio_processing/agc2/agc2_testing_common.h"
#include <math.h>
#include "rtc_base/checks.h"
namespace webrtc {
namespace test {
std::vector<double> LinSpace(double l, double r, int num_points) { … }
WhiteNoiseGenerator::WhiteNoiseGenerator(int min_amplitude, int max_amplitude)
: … { … }
float WhiteNoiseGenerator::operator()() { … }
SineGenerator::SineGenerator(float amplitude,
float frequency_hz,
int sample_rate_hz)
: … { … }
float SineGenerator::operator()() { … }
PulseGenerator::PulseGenerator(float pulse_amplitude,
float no_pulse_amplitude,
float frequency_hz,
int sample_rate_hz)
: … { … }
float PulseGenerator::operator()() { … }
}
}