Oops. Fixed spreading function for stereo
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Mon, 11 Feb 2008 05:17:42 +0000 (16:17 +1100)
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Mon, 11 Feb 2008 05:17:42 +0000 (16:17 +1100)
libcelt/celt.c

index 714f60d..29454d9 100644 (file)
@@ -99,7 +99,7 @@ CELTEncoder *celt_encoder_new(const CELTMode *mode)
 
    mdct_init(&st->mdct_lookup, 2*N);
    st->fft = kiss_fftr_alloc(MAX_PERIOD*C, 0, 0);
-   psydecay_init(&st->psy, MAX_PERIOD/2, st->Fs);
+   psydecay_init(&st->psy, MAX_PERIOD*C/2, st->Fs);
    
    st->window = celt_alloc(2*N*sizeof(float));
    st->in_mem = celt_alloc(N*C*sizeof(float));