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 |