[xiph-commits] r7114 - trunk/speex/libspeex

conrad at dactyl.lonelymoon.com conrad
Tue Jul 13 21:34:10 PDT 2004


Author: conrad
Date: Tue Jul 13 21:34:10 2004
New Revision: 7114

Modified:
trunk/speex/libspeex/modes_noglobals.c
Log:
minor fixes to modes_noglobals.c


Modified: trunk/speex/libspeex/modes_noglobals.c
===================================================================
--- trunk/speex/libspeex/modes_noglobals.c	2004-07-14 03:50:57 UTC (rev 7113)
+++ trunk/speex/libspeex/modes_noglobals.c	2004-07-14 04:34:08 UTC (rev 7114)
@@ -46,8 +46,6 @@
#define NULL 0
#endif

-#ifdef SPEEX_DISABLE_GLOBAL_POINTERS
-
/* Extern declarations for all codebooks we use here */
extern const signed char gain_cdbk_nb[];
extern const signed char gain_cdbk_lbr[];
@@ -219,7 +217,7 @@
int     defaultSubmode, /**< Default sub-mode to use when encoding */
int     low_quality_map[], /**< Mode corresponding to each quality setting */
int     quality_map[], /**< Mode corresponding to each quality setting */
-   float   (*vbr_thresh)[],
+   float   (*vbr_thresh)[11],
int     nb_modes
)
{
@@ -1085,10 +1083,10 @@
void speex_mode_free_byID (SpeexMode * mode, int id)
{
switch (id) {
-  case 0: return speex_nb_mode_free(mode); break;
-  case 1: return speex_wb_mode_free(mode); break;
-  case 2: return speex_uwb_mode_free(mode); break;
-  default: return;
+  case 0: speex_nb_mode_free(mode); break;
+  case 1: speex_wb_mode_free(mode); break;
+  case 2:  speex_uwb_mode_free(mode); break;
+  default: break;
}
}

@@ -1128,5 +1126,3 @@

return mode->query(mode->mode, request, ptr);
}
-
-#endif /* SPEEX_DISABLE_GLOBAL_POINTERS */



More information about the commits mailing list