From 31a528fb328d50ee1b81a7e3291219cbc0465681 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Sun, 24 Jun 2018 23:43:52 -0400 Subject: [PATCH] oops, fixes noise floor --- src/denoise.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/denoise.c b/src/denoise.c index 0211d49..77884a9 100644 --- a/src/denoise.c +++ b/src/denoise.c @@ -317,13 +317,19 @@ static void frame_analysis(DenoiseState *st, kiss_fft_cpx *X, float *Ex, const f { _celt_autocorr(x, ac, NULL, 0, LPC_ORDER, WINDOW_SIZE); /* -40 dB noise floor. */ - ac[0] -= ac[0]*1e-4; + ac[0] += ac[0]*1e-4; /* Lag windowing. */ for (i=1;i