// file: calculate_lpc_constants.h // // this is the constant file containing default parameters and // command line options // // make sure definitions are made only once // #ifndef __CALCULATE_LPC_CONSTANTS #define __CALCULATE_LPC_CONSTANTS #ifndef __GLOBAL_CONSTANTS #define __GLOBAL_CONSTANTS #include "global_constants.h" #endif // the help file // #define CLPC_HELP_FILE "calculate_lpc.help" // commandline identifiers // #define CLPC_HELP_OPT "-h" #define CLPC_INPUTFILE_OPT "-i" #define CLPC_WIN_SIZE_OPT "-w" #define CLPC_FRAME_SIZE_OPT "-f" #define CLPC_WIN_CENTER_OPT "-c" #define CLPC_SAMPLE_FREQ_OPT "-s" #define CLPC_NUM_CHANS_OPT "-n" #define CLPC_PREEMP_VAL_OPT "-p" #define CLPC_WIN_TYPE_OPT "-t" #define CLPC_LP_ORDER_OPT "-lp" #define CLPC_DFT_ORDER_OPT "-dft" #define CLPC_DEBUG_MODE_OPT "-d" // type of windows // #define CLPC_HAMMING_WIN 0 #define CLPC_RCTGL_WIN 1 #define CLPC_RCTGL_CONST 1 // default values // #define CLPC_DEFAULT_FRAME_SIZE 20 // msec #define CLPC_DEFAULT_WIN_SIZE 30 // msec #define CLPC_DEFAULT_WIN_CENTER 15 // msec #define CLPC_DEFAULT_SAMPLE_FREQ 8000 // Hz #define CLPC_DEFAULT_NUM_CHANS 1 #define CLPC_DEFAULT_PREEMP_VAL 0.95 #define CLPC_DEFAULT_WIN_TYPE CLPC_HAMMING_WIN #define CLPC_DEFAULT_LP_ORDER 16 #define CLPC_DEFAULT_DFT_ORDER (int) (CLPC_DEFAULT_WIN_SIZE * CLPC_DEFAULT_SAMPLE_FREQ * CLPC_MSEC_TO_SEC) #define CLPC_DEFAULT_DEBUG_MODE DEBUG_NONE // number of bytes per sample // #define CLPC_BYTES_PER_SAMPLE 2 // conversion factor // #define CLPC_MSEC_TO_SEC 0.001 // end of file // #endif