Index: webrtc/modules/audio_processing/level_controller/gain_selector.cc |
diff --git a/webrtc/modules/audio_processing/level_controller/gain_selector.cc b/webrtc/modules/audio_processing/level_controller/gain_selector.cc |
index 2accd7180c4e9a6e2b942e47d56d69297aafa176..cf90d8d26b44bb2167a1482fbdcfa31e1da930d0 100644 |
--- a/webrtc/modules/audio_processing/level_controller/gain_selector.cc |
+++ b/webrtc/modules/audio_processing/level_controller/gain_selector.cc |
@@ -15,7 +15,7 @@ |
#include "webrtc/base/checks.h" |
#include "webrtc/modules/audio_processing/include/audio_processing.h" |
-#include "webrtc/modules/audio_processing/level_controller/lc_constants.h" |
+#include "webrtc/modules/audio_processing/level_controller/level_controller_constants.h" |
namespace webrtc { |
@@ -42,10 +42,12 @@ void GainSelector::Initialize(int sample_rate_hz) { |
float GainSelector::GetNewGain(float peak_level, |
float noise_energy, |
float saturating_gain, |
+ bool gain_jumpstart, |
SignalClassifier::SignalType signal_type) { |
RTC_DCHECK_LT(0.f, peak_level); |
- if (signal_type == SignalClassifier::SignalType::kHighlyNonStationary) { |
+ if (signal_type == SignalClassifier::SignalType::kHighlyNonStationary || |
+ gain_jumpstart) { |
highly_nonstationary_signal_hold_counter_ = 100; |
} else { |
highly_nonstationary_signal_hold_counter_ = |