#include "modules/audio_processing/agc2/fixed_digital_level_estimator.h"
#include <algorithm>
#include <cmath>
#include "api/array_view.h"
#include "api/audio/audio_frame.h"
#include "modules/audio_processing/logging/apm_data_dumper.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
constexpr float kInitialFilterStateLevel = …;
constexpr float kAttackFilterConstant = …;
constexpr float kDecayFilterConstant = …;
}
FixedDigitalLevelEstimator::FixedDigitalLevelEstimator(
size_t samples_per_channel,
ApmDataDumper* apm_data_dumper)
: … { … }
void FixedDigitalLevelEstimator::CheckParameterCombination() { … }
std::array<float, kSubFramesInFrame> FixedDigitalLevelEstimator::ComputeLevel(
DeinterleavedView<const float> float_frame) { … }
void FixedDigitalLevelEstimator::SetSamplesPerChannel(
size_t samples_per_channel) { … }
void FixedDigitalLevelEstimator::Reset() { … }
}