| 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(" --aec3\n"); |
| 85 printf("\n -aecm Echo control mobile\n"); | 85 printf("\n -aecm Echo control mobile\n"); |
| 86 printf(" --aecm_echo_path_in_file FILE\n"); | 86 printf(" --aecm_echo_path_in_file FILE\n"); |
| 87 printf(" --aecm_echo_path_out_file FILE\n"); | 87 printf(" --aecm_echo_path_out_file FILE\n"); |
| 88 printf(" --no_comfort_noise\n"); | 88 printf(" --no_comfort_noise\n"); |
| 89 printf(" --routing_mode MODE [0 - 4]\n"); | 89 printf(" --routing_mode MODE [0 - 4]\n"); |
| 90 printf("\n -agc Gain control\n"); | 90 printf("\n -agc Gain control\n"); |
| 91 printf(" --analog\n"); | 91 printf(" --analog\n"); |
| 92 printf(" --adaptive_digital\n"); | 92 printf(" --adaptive_digital\n"); |
| 93 printf(" --fixed_digital\n"); | 93 printf(" --fixed_digital\n"); |
| 94 printf(" --target_level LEVEL\n"); | 94 printf(" --target_level LEVEL\n"); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 } else if (strcmp(argv[i], "--extended_filter") == 0) { | 262 } else if (strcmp(argv[i], "--extended_filter") == 0) { |
| 263 config.Set<ExtendedFilter>(new ExtendedFilter(true)); | 263 config.Set<ExtendedFilter>(new ExtendedFilter(true)); |
| 264 | 264 |
| 265 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { | 265 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { |
| 266 config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 266 config.Set<DelayAgnostic>(new DelayAgnostic(true)); |
| 267 | 267 |
| 268 } else if (strcmp(argv[i], "--delay_agnostic") == 0) { | 268 } else if (strcmp(argv[i], "--delay_agnostic") == 0) { |
| 269 config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 269 config.Set<DelayAgnostic>(new DelayAgnostic(true)); |
| 270 | 270 |
| 271 } else if (strcmp(argv[i], "--next_generation_aec") == 0) { | 271 } else if (strcmp(argv[i], "--aec3") == 0) { |
| 272 config.Set<NextGenerationAec>(new NextGenerationAec(true)); | 272 config.Set<EchoCanceller3>(new EchoCanceller3(true)); |
| 273 | 273 |
| 274 } else if (strcmp(argv[i], "-aecm") == 0) { | 274 } else if (strcmp(argv[i], "-aecm") == 0) { |
| 275 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); | 275 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); |
| 276 | 276 |
| 277 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { | 277 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { |
| 278 i++; | 278 i++; |
| 279 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"; |
| 280 aecm_echo_path_in_filename = argv[i]; | 280 aecm_echo_path_in_filename = argv[i]; |
| 281 | 281 |
| 282 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { | 282 } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 } // namespace | 1146 } // namespace |
| 1147 } // namespace webrtc | 1147 } // namespace webrtc |
| 1148 | 1148 |
| 1149 int main(int argc, char* argv[]) { | 1149 int main(int argc, char* argv[]) { |
| 1150 webrtc::void_main(argc, argv); | 1150 webrtc::void_main(argc, argv); |
| 1151 | 1151 |
| 1152 // Optional, but removes memory leak noise from Valgrind. | 1152 // Optional, but removes memory leak noise from Valgrind. |
| 1153 google::protobuf::ShutdownProtobufLibrary(); | 1153 google::protobuf::ShutdownProtobufLibrary(); |
| 1154 return 0; | 1154 return 0; |
| 1155 } | 1155 } |
| OLD | NEW |