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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 i++; | 251 i++; |
252 ASSERT_LT(i, argc) << "Specify level after --aec_suppression_level"; | 252 ASSERT_LT(i, argc) << "Specify level after --aec_suppression_level"; |
253 int suppression_level; | 253 int suppression_level; |
254 ASSERT_EQ(1, sscanf(argv[i], "%d", &suppression_level)); | 254 ASSERT_EQ(1, sscanf(argv[i], "%d", &suppression_level)); |
255 ASSERT_EQ(apm->kNoError, | 255 ASSERT_EQ(apm->kNoError, |
256 apm->echo_cancellation()->set_suppression_level( | 256 apm->echo_cancellation()->set_suppression_level( |
257 static_cast<webrtc::EchoCancellation::SuppressionLevel>( | 257 static_cast<webrtc::EchoCancellation::SuppressionLevel>( |
258 suppression_level))); | 258 suppression_level))); |
259 | 259 |
260 } else if (strcmp(argv[i], "--extended_filter") == 0) { | 260 } else if (strcmp(argv[i], "--extended_filter") == 0) { |
261 config.Set<DelayCorrection>(new DelayCorrection(true)); | 261 config.Set<ExtendedFilter>(new ExtendedFilter(true)); |
262 | 262 |
263 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { | 263 } else if (strcmp(argv[i], "--no_reported_delay") == 0) { |
264 config.Set<ReportedDelay>(new ReportedDelay(false)); | 264 config.Set<ReportedDelay>(new ReportedDelay(false)); |
265 | 265 |
266 } else if (strcmp(argv[i], "-aecm") == 0) { | 266 } else if (strcmp(argv[i], "-aecm") == 0) { |
267 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); | 267 ASSERT_EQ(apm->kNoError, apm->echo_control_mobile()->Enable(true)); |
268 | 268 |
269 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { | 269 } else if (strcmp(argv[i], "--aecm_echo_path_in_file") == 0) { |
270 i++; | 270 i++; |
271 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; | 271 ASSERT_LT(i, argc) << "Specify filename after --aecm_echo_path_in_file"; |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 } // namespace | 1136 } // namespace |
1137 } // namespace webrtc | 1137 } // namespace webrtc |
1138 | 1138 |
1139 int main(int argc, char* argv[]) { | 1139 int main(int argc, char* argv[]) { |
1140 webrtc::void_main(argc, argv); | 1140 webrtc::void_main(argc, argv); |
1141 | 1141 |
1142 // Optional, but removes memory leak noise from Valgrind. | 1142 // Optional, but removes memory leak noise from Valgrind. |
1143 google::protobuf::ShutdownProtobufLibrary(); | 1143 google::protobuf::ShutdownProtobufLibrary(); |
1144 return 0; | 1144 return 0; |
1145 } | 1145 } |
OLD | NEW |