OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 "flag to enable the component with default settings. The subsequent flags\n" | 74 "flag to enable the component with default settings. The subsequent flags\n" |
75 "in the block are used to provide configuration settings.\n"); | 75 "in the block are used to provide configuration settings.\n"); |
76 printf("\n -aec Echo cancellation\n"); | 76 printf("\n -aec Echo cancellation\n"); |
77 printf(" --drift_compensation\n"); | 77 printf(" --drift_compensation\n"); |
78 printf(" --no_drift_compensation\n"); | 78 printf(" --no_drift_compensation\n"); |
79 printf(" --no_echo_metrics\n"); | 79 printf(" --no_echo_metrics\n"); |
80 printf(" --no_delay_logging\n"); | 80 printf(" --no_delay_logging\n"); |
81 printf(" --aec_suppression_level LEVEL [0 - 2]\n"); | 81 printf(" --aec_suppression_level LEVEL [0 - 2]\n"); |
82 printf(" --extended_filter\n"); | 82 printf(" --extended_filter\n"); |
83 printf(" --no_reported_delay\n"); | 83 printf(" --no_reported_delay\n"); |
| 84 printf(" --next_generation_aec\n"); |
84 printf("\n -aecm Echo control mobile\n"); | 85 printf("\n -aecm Echo control mobile\n"); |
85 printf(" --aecm_echo_path_in_file FILE\n"); | 86 printf(" --aecm_echo_path_in_file FILE\n"); |
86 printf(" --aecm_echo_path_out_file FILE\n"); | 87 printf(" --aecm_echo_path_out_file FILE\n"); |
87 printf(" --no_comfort_noise\n"); | 88 printf(" --no_comfort_noise\n"); |
88 printf(" --routing_mode MODE [0 - 4]\n"); | 89 printf(" --routing_mode MODE [0 - 4]\n"); |
89 printf("\n -agc Gain control\n"); | 90 printf("\n -agc Gain control\n"); |
90 printf(" --analog\n"); | 91 printf(" --analog\n"); |
91 printf(" --adaptive_digital\n"); | 92 printf(" --adaptive_digital\n"); |
92 printf(" --fixed_digital\n"); | 93 printf(" --fixed_digital\n"); |
93 printf(" --target_level LEVEL\n"); | 94 printf(" --target_level LEVEL\n"); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 261 |
261 } else if (strcmp(argv[i], "--extended_filter") == 0) { | 262 } else if (strcmp(argv[i], "--extended_filter") == 0) { |
262 config.Set<ExtendedFilter>(new ExtendedFilter(true)); | 263 config.Set<ExtendedFilter>(new ExtendedFilter(true)); |
263 | 264 |
264 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { | 265 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { |
265 config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 266 config.Set<DelayAgnostic>(new DelayAgnostic(true)); |
266 | 267 |
267 } else if (strcmp(argv[i], "--delay_agnostic") == 0) { | 268 } else if (strcmp(argv[i], "--delay_agnostic") == 0) { |
268 config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 269 config.Set<DelayAgnostic>(new DelayAgnostic(true)); |
269 | 270 |
| 271 } else if (strcmp(argv[i], "--next_generation_aec") == 0) { |
| 272 config.Set<NextGenerationAec>(new NextGenerationAec(true)); |
| 273 |
270 } else if (strcmp(argv[i], "-aecm") == 0) { | 274 } else if (strcmp(argv[i], "-aecm") == 0) { |
271 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); | 275 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); |
272 | 276 |
273 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { | 277 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { |
274 i++; | 278 i++; |
275 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; | 279 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; |
276 aecm_echo_path_in_filename = argv[i]; | 280 aecm_echo_path_in_filename = argv[i]; |
277 | 281 |
278 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { | 282 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { |
279 i++; | 283 i++; |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 } // namespace | 1150 } // namespace |
1147 } // namespace webrtc | 1151 } // namespace webrtc |
1148 | 1152 |
1149 int main(int argc, char* argv[]) { | 1153 int main(int argc, char* argv[]) { |
1150 webrtc::void_main(argc, argv); | 1154 webrtc::void_main(argc, argv); |
1151 | 1155 |
1152 // Optional, but removes memory leak noise from Valgrind. | 1156 // Optional, but removes memory leak noise from Valgrind. |
1153 google::protobuf::ShutdownProtobufLibrary(); | 1157 google::protobuf::ShutdownProtobufLibrary(); |
1154 return 0; | 1158 return 0; |
1155 } | 1159 } |
OLD | NEW |