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

Unified Diff: webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc

Issue 2292863002: Introduced new scheme for controlling the functionality inside the audio processing module (Closed)
Patch Set: Changes in response to reviewer comments Created 4 years, 4 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/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..bc1ddb2d6d1c9faf004db35b46b119592dc21fde 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;
+ AudioProcessing::Config apm_config;
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_config.level_controller.enabled = true;
}
+ RTC_DCHECK(apm_config.Validate());
the sun 2016/09/01 13:48:01 dd
peah-webrtc 2016/09/02 08:22:01 Done.
+ RTC_CHECK(ap_->ApplyConfig(apm_config));
ap_->SetExtraOptions(config);
}
}

Powered by Google App Engine
This is Rietveld 408576698