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

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

Issue 1862393002: Pulling AEC divergent filter fraction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: polishing a comment Created 4 years, 8 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 metrics->echo_return_loss_enhancement.instant = my_metrics.erle.instant; 374 metrics->echo_return_loss_enhancement.instant = my_metrics.erle.instant;
375 metrics->echo_return_loss_enhancement.average = my_metrics.erle.average; 375 metrics->echo_return_loss_enhancement.average = my_metrics.erle.average;
376 metrics->echo_return_loss_enhancement.maximum = my_metrics.erle.max; 376 metrics->echo_return_loss_enhancement.maximum = my_metrics.erle.max;
377 metrics->echo_return_loss_enhancement.minimum = my_metrics.erle.min; 377 metrics->echo_return_loss_enhancement.minimum = my_metrics.erle.min;
378 378
379 metrics->a_nlp.instant = my_metrics.aNlp.instant; 379 metrics->a_nlp.instant = my_metrics.aNlp.instant;
380 metrics->a_nlp.average = my_metrics.aNlp.average; 380 metrics->a_nlp.average = my_metrics.aNlp.average;
381 metrics->a_nlp.maximum = my_metrics.aNlp.max; 381 metrics->a_nlp.maximum = my_metrics.aNlp.max;
382 metrics->a_nlp.minimum = my_metrics.aNlp.min; 382 metrics->a_nlp.minimum = my_metrics.aNlp.min;
383 383
384 metrics->divergent_filter_fraction = my_metrics.divergent_filter_fraction;
384 return AudioProcessing::kNoError; 385 return AudioProcessing::kNoError;
385 } 386 }
386 387
387 bool EchoCancellationImpl::stream_has_echo() const { 388 bool EchoCancellationImpl::stream_has_echo() const {
388 rtc::CritScope cs(crit_capture_); 389 rtc::CritScope cs(crit_capture_);
389 return stream_has_echo_; 390 return stream_has_echo_;
390 } 391 }
391 392
392 int EchoCancellationImpl::enable_delay_logging(bool enable) { 393 int EchoCancellationImpl::enable_delay_logging(bool enable) {
393 { 394 {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 return error; 559 return error;
559 } 560 }
560 561
561 size_t EchoCancellationImpl::NumCancellersRequired() const { 562 size_t EchoCancellationImpl::NumCancellersRequired() const {
562 RTC_DCHECK(stream_properties_); 563 RTC_DCHECK(stream_properties_);
563 return stream_properties_->num_output_channels * 564 return stream_properties_->num_output_channels *
564 stream_properties_->num_reverse_channels; 565 stream_properties_->num_reverse_channels;
565 } 566 }
566 567
567 } // namespace webrtc 568 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/echo_cancellation.cc ('k') | webrtc/modules/audio_processing/include/audio_processing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698