#include "modules/audio_processing/aec3/erl_estimator.h"
#include <algorithm>
#include <numeric>
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
constexpr float kMinErl = …;
constexpr float kMaxErl = …;
}
ErlEstimator::ErlEstimator(size_t startup_phase_length_blocks_)
: … { … }
ErlEstimator::~ErlEstimator() = default;
void ErlEstimator::Reset() { … }
void ErlEstimator::Update(
const std::vector<bool>& converged_filters,
rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> render_spectra,
rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>>
capture_spectra) { … }
}