 Chromium Code Reviews
 Chromium Code Reviews Issue 2254973003:
  Added functionality for specifying the initial signal level to use for the gain estimation in the l…  (Closed) 
  Base URL: https://chromium.googlesource.com/external/webrtc.git@master
    
  
    Issue 2254973003:
  Added functionality for specifying the initial signal level to use for the gain estimation in the l…  (Closed) 
  Base URL: https://chromium.googlesource.com/external/webrtc.git@master| Index: webrtc/modules/audio_processing/level_controller/level_controller.h | 
| diff --git a/webrtc/modules/audio_processing/level_controller/level_controller.h b/webrtc/modules/audio_processing/level_controller/level_controller.h | 
| index 3d203f908d53b9f564cc9f6ef2aa9a68b3e19f1e..3fb5c6da99791dcbe39a692d65951f2935d43575 100644 | 
| --- a/webrtc/modules/audio_processing/level_controller/level_controller.h | 
| +++ b/webrtc/modules/audio_processing/level_controller/level_controller.h | 
| @@ -37,6 +37,7 @@ class LevelController { | 
| void Initialize(int sample_rate_hz); | 
| void Process(AudioBuffer* audio); | 
| float GetLastGain() { return last_gain_; } | 
| + void SetInitialLevel(float level); | 
| private: | 
| class Metrics { | 
| @@ -71,6 +72,7 @@ class LevelController { | 
| float dc_level_[2]; | 
| float dc_forgetting_factor_; | 
| float last_gain_; | 
| + bool gain_jumpstart_ = false; | 
| 
hlundin-webrtc
2016/08/18 12:58:12
Naming: the method parameter is called jump_start_
 
peah-webrtc
2016/08/18 17:02:58
Good point!
Done.
 | 
| RTC_DISALLOW_COPY_AND_ASSIGN(LevelController); | 
| }; |