Index: webrtc/modules/audio_processing/aec3/aec_state.h |
diff --git a/webrtc/modules/audio_processing/aec3/aec_state.h b/webrtc/modules/audio_processing/aec3/aec_state.h |
index e3502b4a4f5b5e42ae0446e0bb305bc98747c285..56fee2cf8f52088e2478b9f4e5117f70a32f72b0 100644 |
--- a/webrtc/modules/audio_processing/aec3/aec_state.h |
+++ b/webrtc/modules/audio_processing/aec3/aec_state.h |
@@ -47,6 +47,10 @@ class AecState { |
// Returns whether the render signal is currently active. |
bool ActiveRender() const { return active_render_counter_ > 0; } |
+ // Returns whether the number of active render blocks since an echo path |
+ // change. |
+ size_t ActiveRenderBlocks() const { return active_render_blocks_; } |
+ |
// Returns the ERLE. |
const std::array<float, kFftLengthBy2Plus1>& Erle() const { |
return erle_estimator_.Erle(); |
@@ -108,6 +112,7 @@ class AecState { |
ErleEstimator erle_estimator_; |
int echo_path_change_counter_; |
int active_render_counter_; |
+ size_t active_render_blocks_ = 0; |
bool usable_linear_estimate_ = false; |
bool echo_leakage_detected_ = false; |
bool model_based_aec_feasible_ = false; |