Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Side by Side Diff: webrtc/modules/audio_processing/echo_cancellation_impl.cc

Issue 2338493002: Reland of Introduced new scheme for controlling the functionality inside the audio processing module (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/echo_cancellation_impl.h ('k') | webrtc/modules/audio_processing/include/audio_processing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698