| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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("  --aec3\n"); | 84   printf("  --aec3\n"); | 
|  | 85   printf("  --refined_adaptive_filter\n"); | 
| 85   printf("\n  -aecm    Echo control mobile\n"); | 86   printf("\n  -aecm    Echo control mobile\n"); | 
| 86   printf("  --aecm_echo_path_in_file FILE\n"); | 87   printf("  --aecm_echo_path_in_file FILE\n"); | 
| 87   printf("  --aecm_echo_path_out_file FILE\n"); | 88   printf("  --aecm_echo_path_out_file FILE\n"); | 
| 88   printf("  --no_comfort_noise\n"); | 89   printf("  --no_comfort_noise\n"); | 
| 89   printf("  --routing_mode MODE  [0 - 4]\n"); | 90   printf("  --routing_mode MODE  [0 - 4]\n"); | 
| 90   printf("\n  -agc     Gain control\n"); | 91   printf("\n  -agc     Gain control\n"); | 
| 91   printf("  --analog\n"); | 92   printf("  --analog\n"); | 
| 92   printf("  --adaptive_digital\n"); | 93   printf("  --adaptive_digital\n"); | 
| 93   printf("  --fixed_digital\n"); | 94   printf("  --fixed_digital\n"); | 
| 94   printf("  --target_level LEVEL\n"); | 95   printf("  --target_level LEVEL\n"); | 
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 264 | 265 | 
| 265     } else if (strcmp(argv[i], "--no_reported_delay") == 0) { | 266     } else if (strcmp(argv[i], "--no_reported_delay") == 0) { | 
| 266       config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 267       config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 
| 267 | 268 | 
| 268     } else if (strcmp(argv[i], "--delay_agnostic") == 0) { | 269     } else if (strcmp(argv[i], "--delay_agnostic") == 0) { | 
| 269       config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 270       config.Set<DelayAgnostic>(new DelayAgnostic(true)); | 
| 270 | 271 | 
| 271     } else if (strcmp(argv[i], "--aec3") == 0) { | 272     } else if (strcmp(argv[i], "--aec3") == 0) { | 
| 272       config.Set<EchoCanceller3>(new EchoCanceller3(true)); | 273       config.Set<EchoCanceller3>(new EchoCanceller3(true)); | 
| 273 | 274 | 
|  | 275     } else if (strcmp(argv[i], "--refined_adaptive_filter") == 0) { | 
|  | 276       config.Set<RefinedAdaptiveFilter>(new RefinedAdaptiveFilter(true)); | 
|  | 277 | 
| 274     } else if (strcmp(argv[i], "-aecm") == 0) { | 278     } else if (strcmp(argv[i], "-aecm") == 0) { | 
| 275       ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); | 279       ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); | 
| 276 | 280 | 
| 277     } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { | 281     } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { | 
| 278       i++; | 282       i++; | 
| 279       ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; | 283       ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; | 
| 280       aecm_echo_path_in_filename = argv[i]; | 284       aecm_echo_path_in_filename = argv[i]; | 
| 281 | 285 | 
| 282     } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { | 286     } else if (strcmp(argv[i], "--aecm_echo_path_out_file") == 0) { | 
| 283       i++; | 287       i++; | 
| (...skipping 862 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 | 
|---|