diff --git a/src/modules/audio_processing/aec/main/source/aec_core.c b/src/modules/audio_processing/aec/main/source/aec_core.c index d533b4180..8782242d6 100644 --- a/src/modules/audio_processing/aec/main/source/aec_core.c +++ b/src/modules/audio_processing/aec/main/source/aec_core.c @@ -1306,7 +1306,7 @@ static void UpdateLevel(power_level_t *level, const short *in) static void UpdateMetrics(aec_t *aec) { - float dtmp, dtmp2, dtmp3; + float dtmp, dtmp2; const float actThresholdNoisy = 8.0f; const float actThresholdClean = 40.0f; @@ -1372,7 +1372,6 @@ static void UpdateMetrics(aec_t *aec) suppressedEcho = aec->linoutlevel.averagelevel - safety * aec->linoutlevel.minlevel; dtmp2 = 10 * (float)log10(echo / suppressedEcho + 1e-10f); - dtmp3 = 10 * (float)log10(aec->nearlevel.averagelevel / suppressedEcho + 1e-10f); aec->aNlp.instant = dtmp2; if (dtmp > aec->aNlp.max) { diff --git a/src/modules/audio_processing/aec/main/source/aec_rdft.c b/src/modules/audio_processing/aec/main/source/aec_rdft.c index 255021210..92223343d 100644 --- a/src/modules/audio_processing/aec/main/source/aec_rdft.c +++ b/src/modules/audio_processing/aec/main/source/aec_rdft.c @@ -545,10 +545,8 @@ static void rftbsub_128_C(float *a) { void aec_rdft_forward_128(float *a) { const int n = 128; - int nw; float xi; - nw = ip[0]; bitrv2_32or128(n, ip + 2, a); cftfsub_128(a); rftfsub_128(a); @@ -559,9 +557,7 @@ void aec_rdft_forward_128(float *a) { void aec_rdft_inverse_128(float *a) { const int n = 128; - int nw; - nw = ip[0]; a[1] = 0.5f * (a[0] - a[1]); a[0] -= a[1]; rftbsub_128(a); diff --git a/src/modules/audio_processing/aec/main/source/resampler.c b/src/modules/audio_processing/aec/main/source/resampler.c index 77f81f24d..468fa8c61 100644 --- a/src/modules/audio_processing/aec/main/source/resampler.c +++ b/src/modules/audio_processing/aec/main/source/resampler.c @@ -176,7 +176,6 @@ int EstimateSkew(const int* rawSkew, float y = 0; float xy = 0; float xAvg = 0; - float yAvg = 0; float denom = 0; float skew = 0; @@ -223,7 +222,6 @@ int EstimateSkew(const int* rawSkew, } assert(n > 0); xAvg = x / n; - yAvg = y / n; denom = x2 - xAvg*x; if (denom != 0) { diff --git a/src/modules/audio_processing/aecm/main/source/aecm_core.c b/src/modules/audio_processing/aecm/main/source/aecm_core.c index 55f7036d1..b7dae909a 100644 --- a/src/modules/audio_processing/aecm/main/source/aecm_core.c +++ b/src/modules/audio_processing/aecm/main/source/aecm_core.c @@ -212,7 +212,6 @@ void WebRtcAecm_InitEchoPathCore(AecmCore_t* aecm, const WebRtc_Word16* echo_pat // int WebRtcAecm_InitCore(AecmCore_t * const aecm, int samplingFreq) { - int retVal = 0; int i = 0; WebRtc_Word32 tmp32 = PART_LEN1 * PART_LEN1; WebRtc_Word16 tmp16 = PART_LEN1; @@ -220,7 +219,7 @@ int WebRtcAecm_InitCore(AecmCore_t * const aecm, int samplingFreq) if (samplingFreq != 8000 && samplingFreq != 16000) { samplingFreq = 8000; - retVal = -1; + return -1; } // sanity check of sampling frequency aecm->mult = (WebRtc_Word16)samplingFreq / 8000; @@ -245,7 +244,7 @@ int WebRtcAecm_InitCore(AecmCore_t * const aecm, int samplingFreq) if (WebRtcAecm_InitDelayEstimator(aecm->delay_estimator) != 0) { - retVal = -1; + return -1; } // Initialize to reasonable values diff --git a/src/modules/audio_processing/agc/main/source/digital_agc.c b/src/modules/audio_processing/agc/main/source/digital_agc.c index 4fd21e21a..e303a92f9 100644 --- a/src/modules/audio_processing/agc/main/source/digital_agc.c +++ b/src/modules/audio_processing/agc/main/source/digital_agc.c @@ -660,11 +660,9 @@ WebRtc_Word16 WebRtcAgc_ProcessVad(AgcVad_t *state, // (i) VAD state WebRtc_Word16 buf2[4]; WebRtc_Word16 HPstate; WebRtc_Word16 zeros, dB; - WebRtc_Word16 *buf1_ptr; // process in 10 sub frames of 1 ms (to save on memory) nrg = 0; - buf1_ptr = &buf1[0]; HPstate = state->HPstate; for (subfr = 0; subfr < 10; subfr++) {