Index: webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc |
diff --git a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc |
index 8905846743399eddd4a4b89628e32dd0a6308ee2..c708664db498b847ede27c4f1791a6a851f41d2b 100644 |
--- a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc |
+++ b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc |
@@ -32,8 +32,8 @@ void EchoGeneratingPower(const RenderBuffer& render_buffer, |
} |
// Apply soft noise gate of -78 dBFS. |
- const float kNoiseGatePower = 27509.42f; |
- std::for_each(X2->begin(), X2->end(), [kNoiseGatePower](float& a) { |
+ static constexpr float kNoiseGatePower = 27509.42f; |
+ std::for_each(X2->begin(), X2->end(), [](float& a) { |
if (kNoiseGatePower > a) { |
a = std::max(0.f, a - 0.3f * (kNoiseGatePower - a)); |
} |