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

jm at svn.xiph.org jm at svn.xiph.org
Sat Jul 28 15:54:50 PDT 2007


Author: jm
Date: 2007-07-28 15:54:50 -0700 (Sat, 28 Jul 2007)
New Revision: 13384

Modified:
   trunk/speex/libspeex/testenc.c
   trunk/speex/libspeex/testenc_uwb.c
   trunk/speex/libspeex/testenc_wb.c
Log:
Patch by Alexander Chemeris to make testenc* use speex_lib_get_mode


Modified: trunk/speex/libspeex/testenc.c
===================================================================
--- trunk/speex/libspeex/testenc.c	2007-07-28 22:54:42 UTC (rev 13383)
+++ trunk/speex/libspeex/testenc.c	2007-07-28 22:54:50 UTC (rev 13384)
@@ -35,8 +35,8 @@
    sigpow = 0;
    errpow = 0;
 
-   st = speex_encoder_init(&speex_nb_mode);
-   dec = speex_decoder_init(&speex_nb_mode);
+   st = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));
+   dec = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));
 
    /* BEGIN: You probably don't need the following in a real application */
    callback.callback_id = SPEEX_INBAND_CHAR;

Modified: trunk/speex/libspeex/testenc_uwb.c
===================================================================
--- trunk/speex/libspeex/testenc_uwb.c	2007-07-28 22:54:42 UTC (rev 13383)
+++ trunk/speex/libspeex/testenc_uwb.c	2007-07-28 22:54:50 UTC (rev 13384)
@@ -36,8 +36,8 @@
    sigpow = 0;
    errpow = 0;
 
-   st = speex_encoder_init(&speex_uwb_mode);
-   dec = speex_decoder_init(&speex_uwb_mode);
+   st = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_UWB));
+   dec = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_UWB));
 
    callback.callback_id = SPEEX_INBAND_CHAR;
    callback.func = speex_std_char_handler;

Modified: trunk/speex/libspeex/testenc_wb.c
===================================================================
--- trunk/speex/libspeex/testenc_wb.c	2007-07-28 22:54:42 UTC (rev 13383)
+++ trunk/speex/libspeex/testenc_wb.c	2007-07-28 22:54:50 UTC (rev 13384)
@@ -36,8 +36,8 @@
    sigpow = 0;
    errpow = 0;
 
-   st = speex_encoder_init(&speex_wb_mode);
-   dec = speex_decoder_init(&speex_wb_mode);
+   st = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB));
+   dec = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_WB));
 
    callback.callback_id = SPEEX_INBAND_CHAR;
    callback.func = speex_std_char_handler;



More information about the commits mailing list