Index: webrtc/modules/audio_processing/test/process_test.cc |
diff --git a/webrtc/modules/audio_processing/test/process_test.cc b/webrtc/modules/audio_processing/test/process_test.cc |
index ad769adab491fcb544d08820fe6b68e66ee44ff7..f1ac71752aff0b3528a35dd7bc11b2474608ddeb 100644 |
--- a/webrtc/modules/audio_processing/test/process_test.cc |
+++ b/webrtc/modules/audio_processing/test/process_test.cc |
@@ -177,6 +177,7 @@ void void_main(int argc, char* argv[]) { |
int extra_delay_ms = 0; |
int override_delay_ms = 0; |
Config config; |
+ AudioProcessing::Config apm_config; |
ASSERT_EQ(apm->kNoError, apm->level_estimator()->Enable(true)); |
for (int i = 1; i < argc; i++) { |
@@ -262,8 +263,7 @@ void void_main(int argc, char* argv[]) { |
suppression_level))); |
} else if (strcmp(argv[i], "--level_control") == 0) { |
- config.Set<LevelControl>(new LevelControl(true)); |
- |
+ apm_config.level_controller.enabled = true; |
} else if (strcmp(argv[i], "--extended_filter") == 0) { |
config.Set<ExtendedFilter>(new ExtendedFilter(true)); |
@@ -452,6 +452,7 @@ void void_main(int argc, char* argv[]) { |
FAIL() << "Unrecognized argument " << argv[i]; |
} |
} |
+ apm->ApplyConfig(apm_config); |
apm->SetExtraOptions(config); |
// If we're reading a protobuf file, ensure a simulation hasn't also |