diff options
Diffstat (limited to 'libspeex/modes_wb.c')
-rw-r--r-- | libspeex/modes_wb.c | 54 |
1 files changed, 38 insertions, 16 deletions
diff --git a/libspeex/modes_wb.c b/libspeex/modes_wb.c index e3b4842..cfbcdf6 100644 --- a/libspeex/modes_wb.c +++ b/libspeex/modes_wb.c @@ -52,6 +52,28 @@ #define NULL 0 #endif +#if defined(DISABLE_ENCODER) || defined(DISABLE_WIDEBAND) +#define split_cb_search_shape_sign NULL +#define noise_codebook_quant NULL +#define pitch_search_3tap NULL +#define forced_pitch_quant NULL +#define sb_encoder_init NULL +#define sb_encoder_destroy NULL +#define sb_encode NULL +#define sb_encoder_ctl NULL +#define lsp_quant_high NULL +#endif /* DISABLE_ENCODER */ + +#if defined(DISABLE_DECODER) || defined(DISABLE_WIDEBAND) +#define noise_codebook_unquant NULL +#define split_cb_shape_sign_unquant NULL +#define lsp_unquant_high NULL +#define sb_decoder_init NULL +#define sb_decoder_destroy NULL +#define sb_decode NULL +#define sb_decoder_ctl NULL +#endif /* DISABLE_DECODER */ + EXPORT const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; extern const signed char hexc_table[]; @@ -206,14 +228,14 @@ EXPORT const SpeexMode speex_wb_mode = { "wideband (sub-band CELP)", 1, 4, - &sb_encoder_init, - &sb_encoder_destroy, - &sb_encode, - &sb_decoder_init, - &sb_decoder_destroy, - &sb_decode, - &sb_encoder_ctl, - &sb_decoder_ctl, + sb_encoder_init, + sb_encoder_destroy, + sb_encode, + sb_decoder_init, + sb_decoder_destroy, + sb_decode, + sb_encoder_ctl, + sb_decoder_ctl, }; @@ -276,14 +298,14 @@ EXPORT const SpeexMode speex_uwb_mode = { "ultra-wideband (sub-band CELP)", 2, 4, - &sb_encoder_init, - &sb_encoder_destroy, - &sb_encode, - &sb_decoder_init, - &sb_decoder_destroy, - &sb_decode, - &sb_encoder_ctl, - &sb_decoder_ctl, + sb_encoder_init, + sb_encoder_destroy, + sb_encode, + sb_decoder_init, + sb_decoder_destroy, + sb_decode, + sb_encoder_ctl, + sb_decoder_ctl, }; /* We have defined speex_lib_get_mode() as a macro in speex.h */ |