commit | 67c76b214de9fb3db604cd1a034704cc2ed36ac9 | [log] [tgz] |
---|---|---|
author | Per Åhgren <peah@webrtc.org> | Tue May 14 12:41:27 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 16 13:53:27 2019 |
tree | 5144a16582a53810fe8cccc594f57ba7aab6123a | |
parent | 9a4c93b7d73b6f6ee755f309744f6ec35664cac7 [diff] |
AEC3: Minor code corrections Bug: webrtc:8671 Change-Id: I096053087e7ef0f3375f9c20b55558c1cec670cc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/136806 Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27963}
diff --git a/modules/audio_processing/aec3/adaptive_fir_filter.cc b/modules/audio_processing/aec3/adaptive_fir_filter.cc index 8837c2c..2b11125a 100644 --- a/modules/audio_processing/aec3/adaptive_fir_filter.cc +++ b/modules/audio_processing/aec3/adaptive_fir_filter.cc
@@ -298,8 +298,7 @@ rtc::ArrayView<const FftData> H, FftData* S) { RTC_DCHECK_GE(H.size(), H.size() - 1); - S->re.fill(0.f); - S->im.fill(0.f); + S->Clear(); rtc::ArrayView<const FftData> render_buffer_data = render_buffer.GetFftBuffer();
diff --git a/modules/audio_processing/aec3/filter_analyzer.h b/modules/audio_processing/aec3/filter_analyzer.h index f0f4326..0e1798c 100644 --- a/modules/audio_processing/aec3/filter_analyzer.h +++ b/modules/audio_processing/aec3/filter_analyzer.h
@@ -50,7 +50,7 @@ float Gain() const { return gain_; } // Returns the number of blocks for the current used filter. - float FilterLengthBlocks() const { return filter_length_blocks_; } + int FilterLengthBlocks() const { return filter_length_blocks_; } // Returns the preprocessed filter. rtc::ArrayView<const float> GetAdjustedFilter() const { return h_highpass_; }