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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 config.Set<ExperimentalNs>(new ExperimentalNs(*settings_.use_ts)); | 267 config.Set<ExperimentalNs>(new ExperimentalNs(*settings_.use_ts)); |
268 } | 268 } |
269 if (settings_.use_ie) { | 269 if (settings_.use_ie) { |
270 config.Set<Intelligibility>(new Intelligibility(*settings_.use_ie)); | 270 config.Set<Intelligibility>(new Intelligibility(*settings_.use_ie)); |
271 } | 271 } |
272 if (settings_.use_aec3) { | 272 if (settings_.use_aec3) { |
273 apm_config.echo_canceller3.enabled = *settings_.use_aec3; | 273 apm_config.echo_canceller3.enabled = *settings_.use_aec3; |
274 } | 274 } |
275 if (settings_.use_agc2) { | 275 if (settings_.use_agc2) { |
276 apm_config.gain_controller2.enabled = *settings_.use_agc2; | 276 apm_config.gain_controller2.enabled = *settings_.use_agc2; |
| 277 apm_config.gain_controller2.fixed_gain_db = *settings_.agc2_fixed_gain_db; |
277 } | 278 } |
278 if (settings_.use_lc) { | 279 if (settings_.use_lc) { |
279 apm_config.level_controller.enabled = *settings_.use_lc; | 280 apm_config.level_controller.enabled = *settings_.use_lc; |
280 } | 281 } |
281 if (settings_.use_hpf) { | 282 if (settings_.use_hpf) { |
282 apm_config.high_pass_filter.enabled = *settings_.use_hpf; | 283 apm_config.high_pass_filter.enabled = *settings_.use_hpf; |
283 } | 284 } |
284 | 285 |
285 if (settings_.use_refined_adaptive_filter) { | 286 if (settings_.use_refined_adaptive_filter) { |
286 config.Set<RefinedAdaptiveFilter>( | 287 config.Set<RefinedAdaptiveFilter>( |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } | 391 } |
391 | 392 |
392 if (settings_.aec_dump_output_filename) { | 393 if (settings_.aec_dump_output_filename) { |
393 ap_->AttachAecDump(AecDumpFactory::Create( | 394 ap_->AttachAecDump(AecDumpFactory::Create( |
394 *settings_.aec_dump_output_filename, -1, &worker_queue_)); | 395 *settings_.aec_dump_output_filename, -1, &worker_queue_)); |
395 } | 396 } |
396 } | 397 } |
397 | 398 |
398 } // namespace test | 399 } // namespace test |
399 } // namespace webrtc | 400 } // namespace webrtc |
OLD | NEW |