aboutsummaryrefslogtreecommitdiff
path: root/modules/audio_processing/aec3/residual_echo_estimator.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/audio_processing/aec3/residual_echo_estimator.h')
-rw-r--r--modules/audio_processing/aec3/residual_echo_estimator.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/audio_processing/aec3/residual_echo_estimator.h b/modules/audio_processing/aec3/residual_echo_estimator.h
index 9e977766cb..c071854c4a 100644
--- a/modules/audio_processing/aec3/residual_echo_estimator.h
+++ b/modules/audio_processing/aec3/residual_echo_estimator.h
@@ -40,7 +40,8 @@ class ResidualEchoEstimator {
rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> S2_linear,
rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2,
bool dominant_nearend,
- rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2);
+ rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2,
+ rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2_unbounded);
private:
enum class ReverbType { kLinear, kNonLinear };
@@ -52,12 +53,15 @@ class ResidualEchoEstimator {
// render signal.
void UpdateRenderNoisePower(const RenderBuffer& render_buffer);
+ // Updates the reverb estimation.
+ void UpdateReverb(ReverbType reverb_type,
+ const AecState& aec_state,
+ const RenderBuffer& render_buffer);
+
// Adds the estimated unmodelled echo power to the residual echo power
// estimate.
- void AddReverb(ReverbType reverb_type,
- const AecState& aec_state,
- const RenderBuffer& render_buffer,
- rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2);
+ void AddReverb(
+ rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2) const;
// Gets the echo path gain to apply.
float GetEchoPathGain(const AecState& aec_state,