Removed unused state variable in the AEC

BUG=webrtc:5298

Review-Url: https://codereview.webrtc.org/2364773003
Cr-Commit-Position: refs/heads/master@{#14486}
This commit is contained in:
peah 2016-10-03 23:25:19 -07:00 committed by Commit bot
parent cc91d284e4
commit 6d3a1f922d
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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;