Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: webrtc/modules/audio_processing/aec3/aec_state.h

Issue 2717353002: Further tuning for AEC3 for initial echo suppression and handling of echo path changes (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698