From 6d3a1f922d6a52a456f6c32ffa5d479fde6c039a Mon Sep 17 00:00:00 2001 From: peah Date: Mon, 3 Oct 2016 23:25:19 -0700 Subject: [PATCH] Removed unused state variable in the AEC BUG=webrtc:5298 Review-Url: https://codereview.webrtc.org/2364773003 Cr-Commit-Position: refs/heads/master@{#14486} --- webrtc/modules/audio_processing/aec/aec_core.cc | 2 -- webrtc/modules/audio_processing/aec/aec_core.h | 1 - 2 files changed, 3 deletions(-) diff --git a/webrtc/modules/audio_processing/aec/aec_core.cc b/webrtc/modules/audio_processing/aec/aec_core.cc index 910e21c7c3..f249833269 100644 --- a/webrtc/modules/audio_processing/aec/aec_core.cc +++ b/webrtc/modules/audio_processing/aec/aec_core.cc @@ -1617,7 +1617,6 @@ int WebRtcAec_InitAec(AecCore* aec, int sampFreq) { aec->delay_std = -1; aec->fraction_poor_delays = -1.0f; - aec->signal_delay_correction = 0; aec->previous_delay = -2; // (-2): Uninitialized. aec->delay_correction_count = 0; aec->shift_offset = kInitialShiftOffset; @@ -1883,7 +1882,6 @@ void WebRtcAec_ProcessFrames(AecCore* aec, WebRtc_SoftResetDelayEstimator(aec->delay_estimator, moved_elements); WebRtc_SoftResetDelayEstimatorFarend(aec->delay_estimator_farend, moved_elements); - aec->signal_delay_correction += moved_elements; // If we rely on reported system delay values only, a buffer underrun here // can never occur since we've taken care of that in 1) above. Here, we // apply signal based delay correction and can therefore end up with diff --git a/webrtc/modules/audio_processing/aec/aec_core.h b/webrtc/modules/audio_processing/aec/aec_core.h index 1f3077c879..e41842efed 100644 --- a/webrtc/modules/audio_processing/aec/aec_core.h +++ b/webrtc/modules/audio_processing/aec/aec_core.h @@ -226,7 +226,6 @@ struct AecCore { void* delay_estimator; // Variables associated with delay correction through signal based delay // estimation feedback. - int signal_delay_correction; int previous_delay; int delay_correction_count; int shift_offset;