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

Unified Diff: webrtc/modules/audio_processing/aec3/residual_echo_estimator.h

Issue 2782423003: Major updates to the echo removal functionality in AEC3 (Closed)
Patch Set: Added initialization of uninitialized vector Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aec3/residual_echo_estimator.h
diff --git a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.h b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.h
index 1f520af48c112e6d4ee8068bdda0b0d46de9b7ed..1334e63256b475b3a7bd024fe86fec792e1ff50b 100644
--- a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.h
+++ b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.h
@@ -30,20 +30,14 @@ class ResidualEchoEstimator {
void Estimate(bool using_subtractor_output,
const AecState& aec_state,
- const RenderBuffer& X_buffer,
- const std::vector<std::array<float, kFftLengthBy2Plus1>>& H2,
- const std::array<float, kFftLengthBy2Plus1>& E2_main,
- const std::array<float, kFftLengthBy2Plus1>& E2_shadow,
+ const RenderBuffer& render_buffer,
const std::array<float, kFftLengthBy2Plus1>& S2_linear,
- const std::array<float, kFftLengthBy2Plus1>& S2_fallback,
const std::array<float, kFftLengthBy2Plus1>& Y2,
std::array<float, kFftLengthBy2Plus1>* R2);
- void HandleEchoPathChange(const EchoPathVariability& echo_path_variability);
-
private:
- std::array<float, kFftLengthBy2Plus1> echo_path_gain_;
- size_t blocks_since_last_saturation_ = 1000;
+ std::array<float, kFftLengthBy2Plus1> R2_old_;
+ std::array<int, kFftLengthBy2Plus1> R2_hold_counter_;
RTC_DISALLOW_COPY_AND_ASSIGN(ResidualEchoEstimator);
};

Powered by Google App Engine
This is Rietveld 408576698