From 67c76b214de9fb3db604cd1a034704cc2ed36ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Tue, 14 May 2019 14:41:27 +0200 Subject: [PATCH] AEC3: Minor code corrections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:8671 Change-Id: I096053087e7ef0f3375f9c20b55558c1cec670cc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/136806 Reviewed-by: Gustaf Ullberg Commit-Queue: Per Ã…hgren Cr-Commit-Position: refs/heads/master@{#27963} --- modules/audio_processing/aec3/adaptive_fir_filter.cc | 3 +-- modules/audio_processing/aec3/filter_analyzer.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/audio_processing/aec3/adaptive_fir_filter.cc b/modules/audio_processing/aec3/adaptive_fir_filter.cc index 8837c2cdfd..2b11125aee 100644 --- a/modules/audio_processing/aec3/adaptive_fir_filter.cc +++ b/modules/audio_processing/aec3/adaptive_fir_filter.cc @@ -298,8 +298,7 @@ void ApplyFilter_NEON(const RenderBuffer& render_buffer, rtc::ArrayView 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 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 f0f43264c7..0e1798ca09 100644 --- a/modules/audio_processing/aec3/filter_analyzer.h +++ b/modules/audio_processing/aec3/filter_analyzer.h @@ -50,7 +50,7 @@ class FilterAnalyzer { 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 GetAdjustedFilter() const { return h_highpass_; }