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

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

Issue 2090583002: New module for the adaptive level controlling functionality in the audio processing module (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Corrected the initial behavior for the peak level estimate, and ensured a nonzero minimum peak leveā€¦ Created 4 years, 6 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/process_test.cc
diff --git a/webrtc/modules/audio_processing/test/process_test.cc b/webrtc/modules/audio_processing/test/process_test.cc
index 317ecd96bc25510580a44509afba67f13d61b995..9928d99909b7743028d092b687a052b38a4c5322 100644
--- a/webrtc/modules/audio_processing/test/process_test.cc
+++ b/webrtc/modules/audio_processing/test/process_test.cc
@@ -108,6 +108,7 @@ void usage() {
printf("\n -expns Experimental noise suppression\n");
printf("\n Level metrics (enabled by default)\n");
printf(" --no_level_metrics\n");
+ printf(" -level_control\n");
hlundin-webrtc 2016/06/27 11:21:17 It seems that '--' is the preferred format here.
peah-webrtc 2016/06/27 22:51:50 Done.
printf("\n");
printf("Modifiers:\n");
printf(" --noasm Disable SSE optimization.\n");
@@ -260,6 +261,9 @@ void void_main(int argc, char* argv[]) {
static_cast<webrtc::EchoCancellation::SuppressionLevel>(
suppression_level)));
+ } else if (strcmp(argv[i], "-level_control") == 0) {
hlundin-webrtc 2016/06/27 11:21:17 ... and here.
peah-webrtc 2016/06/27 22:51:50 Done.
+ config.Set<LevelControl>(new LevelControl(true));
+
} else if (strcmp(argv[i], "--extended_filter") == 0) {
config.Set<ExtendedFilter>(new ExtendedFilter(true));

Powered by Google App Engine
This is Rietveld 408576698