// file: calculate_snr_constants.h // // this is the constant file containing default parameters and // command line options // // make sure definitions are made only once // #ifndef __CALCULATE_SNR_CONSTANTS #define __CALCULATE_SNR_CONSTANTS #ifndef __GLOBAL_CONSTANTS #define __GLOBAL_CONSTANTS #include "global_constants.h" #endif // the help file // #define CSNR_HELP_FILE "calculate_snr.help" // commandline identifiers // #define CSNR_HELP_OPT "-h" #define CSNR_INPUTFILE_OPT "-i" #define CSNR_WINDOW_SIZE_OPT "-w" #define CSNR_FRAME_SIZE_OPT "-f" #define CSNR_SAMPLE_FREQ_OPT "-s" #define CSNR_NUM_CHANS_OPT "-n" #define CSNR_NOISE_THRESHOLD_OPT "-nt" #define CSNR_SIGNAL_THRESHOLD_OPT "-st" #define CSNR_DEBUG_MODE_OPT "-d" // default values // #define CSNR_DEFAULT_FRAME_SIZE 20 // msec #define CSNR_DEFAULT_WINDOW_SIZE 30 // msec #define CSNR_DEFAULT_SAMPLE_FREQ 8000 // Hz #define CSNR_DEFAULT_NUM_CHANS 1 #define CSNR_DEFAULT_DEBUG_MODE DEBUG_NONE #define CSNR_DEFAULT_NOISE_THRESHOLD 0.15 #define CSNR_DEFAULT_SIGNAL_THRESHOLD 0.85 // number of bytes per sample // #define CSNR_BYTES_PER_SAMPLE 2 // conversion factor // #define CSNR_MSEC_TO_SEC 0.001 // number of bins for pdf and cdf calculations // #define CSNR_NUM_BINS 10000 // minimum and maximum initial values // #define CSNR_MIN_VAL 100000 #define CSNR_MAX_VAL -100000 // number of space for paddings // #define CSNR_NUM_PADS 10 // end of file // #endif