[xiph-commits] r9972 - in trunk/speex: include/speex libspeex

jm at svn.xiph.org jm at svn.xiph.org
Mon Sep 5 15:47:10 PDT 2005


Author: jm
Date: 2005-09-05 15:47:06 -0700 (Mon, 05 Sep 2005)
New Revision: 9972

Modified:
   trunk/speex/include/speex/speex_jitter.h
   trunk/speex/libspeex/mdf.c
   trunk/speex/libspeex/preprocess.c
   trunk/speex/libspeex/speex_header.c
Log:
Fixing warnings (patch by Alfred E. Heggestad)


Modified: trunk/speex/include/speex/speex_jitter.h
===================================================================
--- trunk/speex/include/speex/speex_jitter.h	2005-09-05 22:46:02 UTC (rev 9971)
+++ trunk/speex/include/speex/speex_jitter.h	2005-09-05 22:47:06 UTC (rev 9972)
@@ -78,7 +78,7 @@
 void speex_jitter_destroy(SpeexJitter *jitter);
 
 /** Put one packet into the jitter buffer */
-void speex_jitter_put(SpeexJitter *jitter, char *packet, int len, int time);
+void speex_jitter_put(SpeexJitter *jitter, char *packet, int len, int timestamp);
 
 /** Get on packet from the jitter buffer */
 void speex_jitter_get(SpeexJitter *jitter, short *out, int *current_timestamp);

Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c	2005-09-05 22:46:02 UTC (rev 9971)
+++ trunk/speex/libspeex/mdf.c	2005-09-05 22:47:06 UTC (rev 9972)
@@ -310,7 +310,7 @@
       of the previous gradient on the "MMSE surface" */
    if (1)
    {
-      float Sge, Sgg, Syy;
+      float Sge, Sgg;
       float gain;
       Syy = inner_prod(st->y+st->frame_size, st->y+st->frame_size, st->frame_size);
       for (i=0;i<N;i++)

Modified: trunk/speex/libspeex/preprocess.c
===================================================================
--- trunk/speex/libspeex/preprocess.c	2005-09-05 22:46:02 UTC (rev 9971)
+++ trunk/speex/libspeex/preprocess.c	2005-09-05 22:47:06 UTC (rev 9972)
@@ -678,9 +678,6 @@
    /* Compute a priori SNR */
    {
       /* A priori update rate */
-      float gamma;
-      float min_gamma=0.12f;
-
       for (i=1;i<N;i++)
       {
          float gamma = .1+.9*st->prior[i]*st->prior[i]/((1+st->prior[i])*(1+st->prior[i]));

Modified: trunk/speex/libspeex/speex_header.c
===================================================================
--- trunk/speex/libspeex/speex_header.c	2005-09-05 22:46:02 UTC (rev 9971)
+++ trunk/speex/libspeex/speex_header.c	2005-09-05 22:47:06 UTC (rev 9972)
@@ -138,7 +138,7 @@
       }
    
    /*FIXME: Do we allow larger headers?*/
-   if (size < sizeof(SpeexHeader))
+   if (size < (int)sizeof(SpeexHeader))
    {
       speex_warning("Speex header too small");
       return NULL;



More information about the commits mailing list