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

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

Issue 2808733002: Added forced zero AEC output after call startup and echo path changes (Closed)
Patch Set: Fixed memory access issue again Created 3 years, 8 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
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec3/aec_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 00b62529f64e5724b0c74deeca23f0fa6316485b..387c6ea42ded33aec95cf7930a047dc31b9d14fc 100644
--- a/webrtc/modules/audio_processing/aec3/aec_state.h
+++ b/webrtc/modules/audio_processing/aec3/aec_state.h
@@ -80,6 +80,9 @@ class AecState {
// TODO(peah): Make this adaptive.
float ReverbDecayFactor() const { return 0.f; }
+ // Returns whether the echo suppression gain should be forced to zero.
+ bool ForcedZeroGain() const { return force_zero_gain_; }
+
// Updates the aec state.
void Update(const std::vector<std::array<float, kFftLengthBy2Plus1>>&
adaptive_filter_frequency_response,
@@ -103,6 +106,8 @@ class AecState {
bool echo_saturation_ = false;
bool headset_detected_ = false;
float previous_max_sample_ = 0.f;
+ bool force_zero_gain_ = false;
+ size_t force_zero_gain_counter_ = 0;
rtc::Optional<size_t> filter_delay_;
rtc::Optional<size_t> external_delay_;
size_t blocks_since_last_saturation_ = 1000;
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec3/aec_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698