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

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

Issue 2862533002: Corrected the behavior in AEC3 during buffer overruns and underruns (Closed)
Patch Set: Changes in response to reviewer comments Created 3 years, 7 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
« no previous file with comments | « webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 Subtractor::~Subtractor() {} 50 Subtractor::~Subtractor() {}
51 51
52 void Subtractor::HandleEchoPathChange( 52 void Subtractor::HandleEchoPathChange(
53 const EchoPathVariability& echo_path_variability) { 53 const EchoPathVariability& echo_path_variability) {
54 if (echo_path_variability.delay_change) { 54 if (echo_path_variability.delay_change) {
55 main_filter_.HandleEchoPathChange(); 55 main_filter_.HandleEchoPathChange();
56 shadow_filter_.HandleEchoPathChange(); 56 shadow_filter_.HandleEchoPathChange();
57 G_main_.HandleEchoPathChange(); 57 G_main_.HandleEchoPathChange();
58 G_shadow_.HandleEchoPathChange();
58 } 59 }
59 } 60 }
60 61
61 void Subtractor::Process(const RenderBuffer& render_buffer, 62 void Subtractor::Process(const RenderBuffer& render_buffer,
62 const rtc::ArrayView<const float> capture, 63 const rtc::ArrayView<const float> capture,
63 const RenderSignalAnalyzer& render_signal_analyzer, 64 const RenderSignalAnalyzer& render_signal_analyzer,
64 const AecState& aec_state, 65 const AecState& aec_state,
65 SubtractorOutput* output) { 66 SubtractorOutput* output) {
66 RTC_DCHECK_EQ(kBlockSize, capture.size()); 67 RTC_DCHECK_EQ(kBlockSize, capture.size());
67 rtc::ArrayView<const float> y = capture; 68 rtc::ArrayView<const float> y = capture;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 shadow_filter_.Adapt(render_buffer, G); 100 shadow_filter_.Adapt(render_buffer, G);
100 101
101 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.re); 102 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.re);
102 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.im); 103 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.im);
103 104
104 main_filter_.DumpFilter("aec3_subtractor_H_main"); 105 main_filter_.DumpFilter("aec3_subtractor_H_main");
105 shadow_filter_.DumpFilter("aec3_subtractor_H_shadow"); 106 shadow_filter_.DumpFilter("aec3_subtractor_H_shadow");
106 } 107 }
107 108
108 } // namespace webrtc 109 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698