diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 03:50:20 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 03:50:20 +0300 |
commit | 5b50f4bf81d532de20bc07be795a7787348bcadd (patch) | |
tree | 4726c6d985bdcb173e4cda4d4e2fa306e771d8d7 /libcelt/pitch.c | |
parent | b7ed44ba0a3df8a95c6e0fe9fc86245a5a6485d5 (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.c | 4 |
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++) { |