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

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

Issue 2862533002: Corrected the behavior in AEC3 during buffer overruns and underruns (Closed)
Patch Set: 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
Index: webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h
diff --git a/webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h b/webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h
index a67b8fb63694ab8d46685785893c3415a6c64b9a..72218b6608878e28ed2901069c6d9f8a42522d4c 100644
--- a/webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h
+++ b/webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h
@@ -21,6 +21,9 @@ namespace webrtc {
// Provides functionality for computing the fixed gain for the shadow filter.
class ShadowFilterUpdateGain {
public:
+ // Takes action in the case of a known echo path change.
+ void HandleEchoPathChange();
+
// Computes the gain.
void Compute(const RenderBuffer& render_buffer,
const RenderSignalAnalyzer& render_signal_analyzer,
@@ -30,6 +33,8 @@ class ShadowFilterUpdateGain {
FftData* G);
private:
+ // TODO(peah): Check whether this counter should instead be initialized to a
+ // large value.
size_t poor_signal_excitation_counter_ = 0;
size_t call_counter_ = 0;
};

Powered by Google App Engine
This is Rietveld 408576698