#include "modules/audio_processing/agc/agc.h"
#include <cmath>
#include <cstdlib>
#include <vector>
#include "modules/audio_processing/agc/loudness_histogram.h"
#include "modules/audio_processing/agc/utility.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
constexpr int kDefaultLevelDbfs = …;
constexpr int kNumAnalysisFrames = …;
constexpr double kActivityThreshold = …;
constexpr int kNum10msFramesInOneSecond = …;
constexpr int kMaxSampleRateHz = …;
}
Agc::Agc()
: … { … }
Agc::~Agc() = default;
void Agc::Process(rtc::ArrayView<const int16_t> audio) { … }
bool Agc::GetRmsErrorDb(int* error) { … }
void Agc::Reset() { … }
int Agc::set_target_level_dbfs(int level) { … }
int Agc::target_level_dbfs() const { … }
float Agc::voice_probability() const { … }
}