Index: webrtc/media/engine/webrtcvoiceengine.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc |
index 8f2490112eb81bb3a4c9da657210018166aa922f..b9fd1f2a27e7129aff86d84246cc44e0c712814f 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine.cc |
@@ -872,6 +872,10 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) { |
webrtc::AudioProcessing::Config apm_config; |
if (level_control_) { |
apm_config.level_controller.enabled = *level_control_; |
+ if (options.level_control_initial_peak_level_dbfs) { |
+ apm_config.level_controller.initial_peak_level_dbfs = |
+ *options.level_control_initial_peak_level_dbfs; |
+ } |
} |
// We check audioproc for the benefit of tests, since FakeWebRtcVoiceEngine |