oops, fixes noise floor

pull/8/head
Jean-Marc Valin 2018-06-24 23:43:52 -04:00
parent 056b684dee
commit 31a528fb32
No known key found for this signature in database
GPG Key ID: 5E5DD9A36F9189C8
1 changed files with 7 additions and 1 deletions

View File

@ -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<LPC_ORDER+1;i++) ac[i] *= (1 - 6e-5*i*i);
_celt_lpc(lpc, ac, LPC_ORDER);
#if 0
for(i=0;i<WINDOW_SIZE;i++) printf("%f ", x[i]);
printf("\n");
#endif
#if 1
printf("1 ");
for(i=0;i<LPC_ORDER;i++) printf("%f ", lpc[i]);
printf("\n");
#endif
}
forward_transform(X, x);
#if TRAINING