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

Side by Side Diff: webrtc/modules/audio_processing/aec3/echo_remover.cc

Issue 2971683002: Changed default value for the duration of the echo in echocanceller 3 (Closed)
Patch Set: Removed the echo decay as a configuration parameter Created 3 years, 5 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 #include "webrtc/modules/audio_processing/aec3/echo_remover.h" 10 #include "webrtc/modules/audio_processing/aec3/echo_remover.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int sample_rate_hz) 97 int sample_rate_hz)
98 : fft_(), 98 : fft_(),
99 data_dumper_( 99 data_dumper_(
100 new ApmDataDumper(rtc::AtomicOps::Increment(&instance_count_))), 100 new ApmDataDumper(rtc::AtomicOps::Increment(&instance_count_))),
101 optimization_(DetectOptimization()), 101 optimization_(DetectOptimization()),
102 sample_rate_hz_(sample_rate_hz), 102 sample_rate_hz_(sample_rate_hz),
103 subtractor_(data_dumper_.get(), optimization_), 103 subtractor_(data_dumper_.get(), optimization_),
104 suppression_gain_(optimization_), 104 suppression_gain_(optimization_),
105 cng_(optimization_), 105 cng_(optimization_),
106 suppression_filter_(sample_rate_hz_), 106 suppression_filter_(sample_rate_hz_),
107 aec_state_(config.echo_decay) { 107 aec_state_(0.8f) {
108 RTC_DCHECK(ValidFullBandRate(sample_rate_hz)); 108 RTC_DCHECK(ValidFullBandRate(sample_rate_hz));
109 } 109 }
110 110
111 EchoRemoverImpl::~EchoRemoverImpl() = default; 111 EchoRemoverImpl::~EchoRemoverImpl() = default;
112 112
113 void EchoRemoverImpl::ProcessCapture( 113 void EchoRemoverImpl::ProcessCapture(
114 const rtc::Optional<size_t>& echo_path_delay_samples, 114 const rtc::Optional<size_t>& echo_path_delay_samples,
115 const EchoPathVariability& echo_path_variability, 115 const EchoPathVariability& echo_path_variability,
116 bool capture_signal_saturation, 116 bool capture_signal_saturation,
117 const RenderBuffer& render_buffer, 117 const RenderBuffer& render_buffer,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 } // namespace 227 } // namespace
228 228
229 EchoRemover* EchoRemover::Create( 229 EchoRemover* EchoRemover::Create(
230 const AudioProcessing::Config::EchoCanceller3& config, 230 const AudioProcessing::Config::EchoCanceller3& config,
231 int sample_rate_hz) { 231 int sample_rate_hz) {
232 return new EchoRemoverImpl(config, sample_rate_hz); 232 return new EchoRemoverImpl(config, sample_rate_hz);
233 } 233 }
234 234
235 } // namespace webrtc 235 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698