OLD | NEW |
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 data_dumper_->DumpWav("aec3_processblock_capture_input", kBlockSize, &y0[0], | 136 data_dumper_->DumpWav("aec3_processblock_capture_input", kBlockSize, &y0[0], |
137 LowestBandRate(sample_rate_hz_), 1); | 137 LowestBandRate(sample_rate_hz_), 1); |
138 data_dumper_->DumpWav("aec3_processblock_render_input", kBlockSize, &x0[0], | 138 data_dumper_->DumpWav("aec3_processblock_render_input", kBlockSize, &x0[0], |
139 LowestBandRate(sample_rate_hz_), 1); | 139 LowestBandRate(sample_rate_hz_), 1); |
140 | 140 |
141 aec_state_.UpdateCaptureSaturation(capture_signal_saturation); | 141 aec_state_.UpdateCaptureSaturation(capture_signal_saturation); |
142 | 142 |
143 if (echo_path_variability.AudioPathChanged()) { | 143 if (echo_path_variability.AudioPathChanged()) { |
144 subtractor_.HandleEchoPathChange(echo_path_variability); | 144 subtractor_.HandleEchoPathChange(echo_path_variability); |
145 power_echo_model_.HandleEchoPathChange(echo_path_variability); | 145 power_echo_model_.HandleEchoPathChange(echo_path_variability); |
| 146 residual_echo_estimator_.HandleEchoPathChange(echo_path_variability); |
146 } | 147 } |
147 | 148 |
148 std::array<float, kFftLengthBy2Plus1> Y2; | 149 std::array<float, kFftLengthBy2Plus1> Y2; |
149 std::array<float, kFftLengthBy2Plus1> S2_power; | 150 std::array<float, kFftLengthBy2Plus1> S2_power; |
150 std::array<float, kFftLengthBy2Plus1> R2; | 151 std::array<float, kFftLengthBy2Plus1> R2; |
151 std::array<float, kFftLengthBy2Plus1> S2_linear; | 152 std::array<float, kFftLengthBy2Plus1> S2_linear; |
152 std::array<float, kFftLengthBy2Plus1> G; | 153 std::array<float, kFftLengthBy2Plus1> G; |
153 FftData X; | 154 FftData X; |
154 FftData Y; | 155 FftData Y; |
155 FftData comfort_noise; | 156 FftData comfort_noise; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 aec_state_.SaturatedCapture() ? 1 : 0); | 244 aec_state_.SaturatedCapture() ? 1 : 0); |
244 } | 245 } |
245 | 246 |
246 } // namespace | 247 } // namespace |
247 | 248 |
248 EchoRemover* EchoRemover::Create(int sample_rate_hz) { | 249 EchoRemover* EchoRemover::Create(int sample_rate_hz) { |
249 return new EchoRemoverImpl(sample_rate_hz); | 250 return new EchoRemoverImpl(sample_rate_hz); |
250 } | 251 } |
251 | 252 |
252 } // namespace webrtc | 253 } // namespace webrtc |
OLD | NEW |