| Index: webrtc/media/engine/webrtcvoiceengine.cc
|
| diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc
|
| index 57921acb70dd46182ebe6a43bedf829014bfa947..1f88cb7245568a1da6a5c1e52aaf751945232e92 100644
|
| --- a/webrtc/media/engine/webrtcvoiceengine.cc
|
| +++ b/webrtc/media/engine/webrtcvoiceengine.cc
|
| @@ -912,17 +912,16 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) {
|
|
|
| LOG(LS_INFO) << "Level control: "
|
| << (!!level_control_ ? *level_control_ : -1);
|
| - webrtc::AudioProcessing::Config apm_config;
|
| if (level_control_) {
|
| - apm_config.level_controller.enabled = *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 =
|
| + apm_config_.level_controller.initial_peak_level_dbfs =
|
| *options.level_control_initial_peak_level_dbfs;
|
| }
|
| }
|
|
|
| apm()->SetExtraOptions(config);
|
| - apm()->ApplyConfig(apm_config);
|
| + apm()->ApplyConfig(apm_config_);
|
|
|
| if (options.recording_sample_rate) {
|
| LOG(LS_INFO) << "Recording sample rate is "
|
|
|