OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 SphericalPointf(DegreesToRadians(settings_.target_angle_degrees), 0.f, | 261 SphericalPointf(DegreesToRadians(settings_.target_angle_degrees), 0.f, |
262 1.f))); | 262 1.f))); |
263 } | 263 } |
264 if (settings_.use_ts) { | 264 if (settings_.use_ts) { |
265 config.Set<ExperimentalNs>(new ExperimentalNs(*settings_.use_ts)); | 265 config.Set<ExperimentalNs>(new ExperimentalNs(*settings_.use_ts)); |
266 } | 266 } |
267 if (settings_.use_ie) { | 267 if (settings_.use_ie) { |
268 config.Set<Intelligibility>(new Intelligibility(*settings_.use_ie)); | 268 config.Set<Intelligibility>(new Intelligibility(*settings_.use_ie)); |
269 } | 269 } |
270 if (settings_.use_aec3) { | 270 if (settings_.use_aec3) { |
271 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); | 271 apm_config.echo_canceller3.enabled = *settings_.use_aec3; |
272 } | 272 } |
273 if (settings_.use_lc) { | 273 if (settings_.use_lc) { |
274 apm_config.level_controller.enabled = *settings_.use_lc; | 274 apm_config.level_controller.enabled = *settings_.use_lc; |
275 } | 275 } |
276 if (settings_.use_hpf) { | 276 if (settings_.use_hpf) { |
277 apm_config.high_pass_filter.enabled = *settings_.use_hpf; | 277 apm_config.high_pass_filter.enabled = *settings_.use_hpf; |
278 } | 278 } |
279 | 279 |
280 if (settings_.use_refined_adaptive_filter) { | 280 if (settings_.use_refined_adaptive_filter) { |
281 config.Set<RefinedAdaptiveFilter>( | 281 config.Set<RefinedAdaptiveFilter>( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize; | 382 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize; |
383 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize); | 383 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize); |
384 RTC_CHECK_EQ(AudioProcessing::kNoError, | 384 RTC_CHECK_EQ(AudioProcessing::kNoError, |
385 ap_->StartDebugRecording( | 385 ap_->StartDebugRecording( |
386 settings_.aec_dump_output_filename->c_str(), -1)); | 386 settings_.aec_dump_output_filename->c_str(), -1)); |
387 } | 387 } |
388 } | 388 } |
389 | 389 |
390 } // namespace test | 390 } // namespace test |
391 } // namespace webrtc | 391 } // namespace webrtc |
OLD | NEW |