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-11 03:50:20 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-11 03:50:20 +0300
commit5b50f4bf81d532de20bc07be795a7787348bcadd (patch)
tree4726c6d985bdcb173e4cda4d4e2fa306e771d8d7 /libcelt/pitch.c
parentb7ed44ba0a3df8a95c6e0fe9fc86245a5a6485d5 (diff)
Decays corresponding to the psychoacoustic spreading function are now
pre-computed (instead of computing tons of pow() uselessly all the time)
Diffstat (limited to 'libcelt/pitch.c')
-rw-r--r--libcelt/pitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/pitch.c b/libcelt/pitch.c
index 67c8319..206f158 100644
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -26,7 +26,7 @@
#include "pitch.h"
#include "psy.h"
-void find_spectral_pitch(kiss_fftr_cfg fft, float *x, float *y, int lag, int len, int C, int *pitch)
+void find_spectral_pitch(kiss_fftr_cfg fft, struct PsyDecay *decay, float *x, float *y, int lag, int len, int C, int *pitch)
{
int c;
int n2 = lag/2;
@@ -51,7 +51,7 @@ void find_spectral_pitch(kiss_fftr_cfg fft, float *x, float *y, int lag, int len
kiss_fftr(fft, xx, X);
kiss_fftr(fft, yy, Y);
- compute_masking(X, curve, lag*C, 44100);
+ compute_masking(decay, X, curve, lag*C, 44100);
for (i=1;i<C*n2;i++)
{