Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-08 07:09:45 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-08 07:09:45 +0300
commit7351e286c81e98b10ddebfbe3e7c31c866fb3ad5 (patch)
tree9c00a83f230014eb8ea801ae13ecdf886a12c306 /libcelt/psy.c
parent6211c90def21b649e7c30e75ea1ea07e2a4c8483 (diff)
Everything converted to use kiss-fft. Got rid of smallft and fftwrap.
Code much leaner now.
Diffstat (limited to 'libcelt/psy.c')
-rw-r--r--libcelt/psy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/psy.c b/libcelt/psy.c
index 0bc2f23..6ba252a 100644
--- a/libcelt/psy.c
+++ b/libcelt/psy.c
@@ -111,7 +111,7 @@ void compute_masking(float *X, float *mask, int len, int Fs)
float psd[N];
psd[0] = X[0]*X[0];
for (i=1;i<N;i++)
- psd[i] = X[i*2-1]*X[i*2-1] + X[i*2]*X[i*2];
+ psd[i] = X[i*2]*X[i*2] + X[i*2+1]*X[i*2+1];
/* TODO: Do tone masking */
/* Noise masking */
spreading_func(psd, mask, N, Fs);