sumom****@users*****
sumom****@users*****
2010年 5月 6日 (木) 13:49:19 JST
Index: julius4/libjulius/src/plugin.c diff -u julius4/libjulius/src/plugin.c:1.3 julius4/libjulius/src/plugin.c:1.4 --- julius4/libjulius/src/plugin.c:1.3 Fri Sep 18 17:31:08 2009 +++ julius4/libjulius/src/plugin.c Thu May 6 13:49:19 2010 @@ -12,7 +12,7 @@ * @author Akinobu Lee * @date Sat Aug 2 09:46:09 2008 * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * */ /* @@ -505,6 +505,8 @@ } +#endif /* ENABLE_PLUGIN */ + /************************************************************************/ /* assume only one MFCC module! */ @@ -513,6 +515,7 @@ boolean mfc_module_init(MFCCCalc *mfcc, Recog *recog) { +#ifdef ENABLE_PLUGIN mfcc->plugin_source = recog->jconf->input.plugin_source; if (mfcc->plugin_source < 0) { jlog("ERROR: SP_MDCMODULE selected but plugin is missing?\n"); @@ -531,6 +534,7 @@ jlog("ERROR: FEATURE_INPUT plugin: fvin_read() not found!\n"); return FALSE; } +#endif return TRUE; } @@ -541,6 +545,7 @@ FUNC_INT func; unsigned int ret; +#ifdef ENABLE_PLUGIN func = (FUNC_INT) plugin_get_func(mfcc->plugin_source, "fvin_get_configuration"); if (func == NULL) { jlog("ERROR: feature vector input plugin: fvin_get_configuration() not found\n"); @@ -560,6 +565,7 @@ } else { mfcc->param->header.samptype = ret; } +#endif return TRUE; } @@ -567,6 +573,7 @@ boolean mfc_module_standby(MFCCCalc *mfcc) { +#ifdef ENABLE_PLUGIN FUNC_INT func; int ret; @@ -574,11 +581,15 @@ else ret = TRUE; mfcc->segmented_by_input = FALSE; return ret; +#else + return TRUE; +#endif } boolean mfc_module_begin(MFCCCalc *mfcc) { +#ifdef ENABLE_PLUGIN FUNC_INT func; int ret; @@ -587,11 +598,15 @@ if (mfcc->func.fv_begin) ret = mfcc->func.fv_begin(); else ret = TRUE; return ret; +#else + return TRUE; +#endif } boolean mfc_module_end(MFCCCalc *mfcc) { +#ifdef ENABLE_PLUGIN FUNC_INT func; int ret; @@ -600,11 +615,15 @@ if (mfcc->func.fv_end) ret = mfcc->func.fv_end(); else ret = TRUE; return ret; +#else + return TRUE; +#endif } int mfc_module_read(MFCCCalc *mfcc, int *new_t) { +#ifdef ENABLE_PLUGIN FUNC_INT func; int ret; @@ -632,6 +651,7 @@ } *new_t = mfcc->f + 1; +#endif return 0; } @@ -639,12 +659,12 @@ char * mfc_module_input_name(MFCCCalc *mfcc) { +#ifdef ENABLE_PLUGIN int ret; if (mfcc->func.fv_input_name) return(mfcc->func.fv_input_name()); +#endif return NULL; } -#endif /* ENABLE_PLUGIN */ - /* end of file */