Chromium Code Reviews| 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..4386e84c02eb94496385ac587a391fa8b1164e18 100644 |
| --- a/webrtc/modules/audio_processing/level_controller/gain_selector.cc |
| +++ b/webrtc/modules/audio_processing/level_controller/gain_selector.cc |
| @@ -42,10 +42,12 @@ void GainSelector::Initialize(int sample_rate_hz) { |
| float GainSelector::GetNewGain(float peak_level, |
| float noise_energy, |
| float saturating_gain, |
| + bool jump_start_gain, |
| SignalClassifier::SignalType signal_type) { |
| RTC_DCHECK_LT(0.f, peak_level); |
| - if (signal_type == SignalClassifier::SignalType::kHighlyNonStationary) { |
| + if (signal_type == SignalClassifier::SignalType::kHighlyNonStationary || |
| + jump_start_gain) { |
|
aleloi
2016/08/18 11:43:39
Is this to avoid having to wait for 100 iterations
peah-webrtc
2016/08/18 12:48:37
Yes, that is correct.
|
| highly_nonstationary_signal_hold_counter_ = 100; |
| } else { |
| highly_nonstationary_signal_hold_counter_ = |