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 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |