Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: webrtc/modules/audio_processing/level_controller/level_controller.h

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
Patch Set: Merge from upstream CL Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698