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

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

Issue 2111553002: Improved tuning of the adaptive level controller. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ALC_RC9_CL
Patch Set: Disabling bitexactness tests that were by mistake not disabled in the previous patch Created 4 years, 6 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/gain_applier.h
diff --git a/webrtc/modules/audio_processing/level_controller/gain_applier.h b/webrtc/modules/audio_processing/level_controller/gain_applier.h
index decd1eb58c1c1d0a9b785be8c19c3cd83fdb9d92..2fc3543f845b4f1d3a558e235848eb5175f26268 100644
--- a/webrtc/modules/audio_processing/level_controller/gain_applier.h
+++ b/webrtc/modules/audio_processing/level_controller/gain_applier.h
@@ -30,8 +30,10 @@ class GainApplier {
private:
ApmDataDumper* const data_dumper_;
float old_gain_ = 1.f;
- float gain_change_step_size_ = 0.f;
-
+ float gain_increase_step_size_ = 0.f;
+ float gain_normal_decrease_step_size_ = 0.f;
+ float gain_saturated_decrease_step_size_ = 0.f;
+ bool last_frame_was_saturated_;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainApplier);
};

Powered by Google App Engine
This is Rietveld 408576698