[xiph-commits] r13411 - trunk/ghost/libghost

jm at svn.xiph.org jm at svn.xiph.org
Mon Jul 30 21:47:34 PDT 2007


Author: jm
Date: 2007-07-30 21:47:34 -0700 (Mon, 30 Jul 2007)
New Revision: 13411

Modified:
   trunk/ghost/libghost/ghost.c
Log:
Fixed the analysis window


Modified: trunk/ghost/libghost/ghost.c
===================================================================
--- trunk/ghost/libghost/ghost.c	2007-07-31 04:47:28 UTC (rev 13410)
+++ trunk/ghost/libghost/ghost.c	2007-07-31 04:47:34 UTC (rev 13411)
@@ -111,10 +111,10 @@
    }
    for (i=0;i<st->overlap;i++)
    {
-      //st->analysis_window[i] = .5-.5*cos(M_PI*i/st->overlap);
-      //st->analysis_window[st->length-i-1] = .5-.5*cos(M_PI*(i+1)/st->overlap);
-      st->analysis_window[i] = ((float)i)/st->overlap;
-      st->analysis_window[st->length-i-1] = ((float)i+1)/st->overlap;
+      //st->analysis_window[i] = .5-.5*cos(M_PI*(i+.5)/st->overlap);
+      //st->analysis_window[st->length-i-1] = .5-.5*cos(M_PI*(i+.5)/st->overlap);
+      st->analysis_window[i] = ((float)i+.5)/st->overlap;
+      st->analysis_window[st->length-i-1] = ((float)i+.5)/st->overlap;
    }
 #if 1
    for (i=0;i<st->lpc_length;i++)



More information about the commits mailing list