Chromium Code Reviews| Index: webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc |
| diff --git a/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc b/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc |
| index e21f42a1c53ff6295549f5ff3271f4e75a4f091f..03a95424606a32a4d120c65856e127d28cb582ec 100644 |
| --- a/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc |
| +++ b/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc |
| @@ -236,6 +236,7 @@ void AecDumpBasedSimulator::HandleMessage( |
| std::cout << "Setting used in config:" << std::endl; |
| } |
| Config config; |
| + ApmSettings apm_settings; |
| if (msg.has_aec_enabled() || settings_.use_aec) { |
| bool enable = settings_.use_aec ? *settings_.use_aec : msg.aec_enabled(); |
| @@ -442,9 +443,11 @@ void AecDumpBasedSimulator::HandleMessage( |
| } |
| if (settings_.use_lc) { |
| - config.Set<LevelControl>(new LevelControl(true)); |
| + apm_settings.level_controller.enabled = true; |
| } |
| + RTC_DCHECK(apm_settings.IsOk()); |
|
hlundin-webrtc
2016/08/30 11:26:26
This is test code. Use RTC_CHECK, to also catch th
peah-webrtc
2016/08/30 17:05:58
Done.
|
| + ap_->ApplySettings(apm_settings); |
| ap_->SetExtraOptions(config); |
| } |
| } |