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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 apm_config.echo_canceller3.enabled = *settings_.use_aec3; | 271 apm_config.echo_canceller3.enabled = *settings_.use_aec3; |
272 } | 272 } |
273 if (settings_.use_agc2) { | |
274 apm_config.gain_controller2.enabled = *settings_.use_agc2; | |
275 } | |
AleBzk
2017/05/16 12:38:43
For now, I didn't add any sanity check preventing
| |
273 if (settings_.use_lc) { | 276 if (settings_.use_lc) { |
274 apm_config.level_controller.enabled = *settings_.use_lc; | 277 apm_config.level_controller.enabled = *settings_.use_lc; |
275 } | 278 } |
276 if (settings_.use_hpf) { | 279 if (settings_.use_hpf) { |
277 apm_config.high_pass_filter.enabled = *settings_.use_hpf; | 280 apm_config.high_pass_filter.enabled = *settings_.use_hpf; |
278 } | 281 } |
279 | 282 |
280 if (settings_.use_refined_adaptive_filter) { | 283 if (settings_.use_refined_adaptive_filter) { |
281 config.Set<RefinedAdaptiveFilter>( | 284 config.Set<RefinedAdaptiveFilter>( |
282 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); | 285 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
388 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize; | 391 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize; |
389 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize); | 392 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize); |
390 RTC_CHECK_EQ(AudioProcessing::kNoError, | 393 RTC_CHECK_EQ(AudioProcessing::kNoError, |
391 ap_->StartDebugRecording( | 394 ap_->StartDebugRecording( |
392 settings_.aec_dump_output_filename->c_str(), -1)); | 395 settings_.aec_dump_output_filename->c_str(), -1)); |
393 } | 396 } |
394 } | 397 } |
395 | 398 |
396 } // namespace test | 399 } // namespace test |
397 } // namespace webrtc | 400 } // namespace webrtc |
OLD | NEW |