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@usherbrooke.ca>2007-11-30 16:36:41 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2007-11-30 16:36:41 +0300
commit6f7e83d8f46cc0f8fb220c4c21f3966c3abf1787 (patch)
treedea20c3cc1dd0eca9a046109ad82246ffa27daeb /libcelt/pitch.c
parent41af42154017e323707018d5f46feaea538da7b8 (diff)
Pre-emphasis, plus a few minor tweaks
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 28c9b52..0cce22e 100644
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -56,9 +56,9 @@ void find_spectral_pitch(void *fft, float *x, float *y, int lag, int len, int *p
X[0] = X[lag-1] = 0;
spx_ifft(fft, X, xx);
- float max_corr=-1;
+ float max_corr=-1e10;
//int pitch;
- *pitch = -1;
+ *pitch = 0;
for (i=0;i<lag-len;i++)
{
//printf ("%f ", xx[i]);