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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 kMaxNumFramesToBuffer, template_queue_element, | 525 kMaxNumFramesToBuffer, template_queue_element, |
526 RenderQueueItemVerifier<float>(render_queue_element_max_size_))); | 526 RenderQueueItemVerifier<float>(render_queue_element_max_size_))); |
527 | 527 |
528 render_queue_buffer_.resize(render_queue_element_max_size_); | 528 render_queue_buffer_.resize(render_queue_element_max_size_); |
529 capture_queue_buffer_.resize(render_queue_element_max_size_); | 529 capture_queue_buffer_.resize(render_queue_element_max_size_); |
530 } else { | 530 } else { |
531 render_signal_queue_->Clear(); | 531 render_signal_queue_->Clear(); |
532 } | 532 } |
533 } | 533 } |
534 | 534 |
535 void EchoCancellationImpl::SetExtraOptions(const Config& config) { | 535 void EchoCancellationImpl::SetExtraOptions(const webrtc::Config& config) { |
536 { | 536 { |
537 rtc::CritScope cs(crit_capture_); | 537 rtc::CritScope cs(crit_capture_); |
538 extended_filter_enabled_ = config.Get<ExtendedFilter>().enabled; | 538 extended_filter_enabled_ = config.Get<ExtendedFilter>().enabled; |
539 delay_agnostic_enabled_ = config.Get<DelayAgnostic>().enabled; | 539 delay_agnostic_enabled_ = config.Get<DelayAgnostic>().enabled; |
540 refined_adaptive_filter_enabled_ = | 540 refined_adaptive_filter_enabled_ = |
541 config.Get<RefinedAdaptiveFilter>().enabled; | 541 config.Get<RefinedAdaptiveFilter>().enabled; |
542 aec3_enabled_ = config.Get<EchoCanceller3>().enabled; | 542 aec3_enabled_ = config.Get<EchoCanceller3>().enabled; |
543 } | 543 } |
544 Configure(); | 544 Configure(); |
545 } | 545 } |
(...skipping 26 matching lines...) Expand all Loading... |
572 return error; | 572 return error; |
573 } | 573 } |
574 | 574 |
575 size_t EchoCancellationImpl::NumCancellersRequired() const { | 575 size_t EchoCancellationImpl::NumCancellersRequired() const { |
576 RTC_DCHECK(stream_properties_); | 576 RTC_DCHECK(stream_properties_); |
577 return stream_properties_->num_output_channels * | 577 return stream_properties_->num_output_channels * |
578 stream_properties_->num_reverse_channels; | 578 stream_properties_->num_reverse_channels; |
579 } | 579 } |
580 | 580 |
581 } // namespace webrtc | 581 } // namespace webrtc |
OLD | NEW |