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

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

Issue 2967603002: Added the ability to adjust the AEC3 performance for large rooms (Closed)
Patch Set: Changes in response to reviewer commments Created 3 years, 6 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 519665f3a29005c9571ebbdb47644579fca02bd9..87089360a43bf65e91b2f344c090f22c2b5d770c 100644
--- a/webrtc/modules/audio_processing/aec3/aec_state.h
+++ b/webrtc/modules/audio_processing/aec3/aec_state.h
@@ -31,7 +31,7 @@ class ApmDataDumper;
// Handles the state and the conditions for the echo removal functionality.
class AecState {
public:
- AecState();
+ explicit AecState(float echo_decay);
~AecState();
// Returns whether the linear filter estimate is usable.
@@ -79,7 +79,7 @@ class AecState {
// Returns the decay factor for the echo reverberation.
// TODO(peah): Make this adaptive.
- float ReverbDecayFactor() const { return 0.f; }
+ float ReverbDecayFactor() const { return echo_decay_factor_; }
// Returns whether the echo suppression gain should be forced to zero.
bool ForcedZeroGain() const { return force_zero_gain_; }
@@ -113,8 +113,8 @@ class AecState {
rtc::Optional<size_t> filter_delay_;
rtc::Optional<size_t> external_delay_;
size_t blocks_since_last_saturation_ = 1000;
-
- RTC_DISALLOW_COPY_AND_ASSIGN(AecState);
+ const float echo_decay_factor_;
+ RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecState);
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698