sigcvt.h
来自「一个语音信号端点检测的程序」· C头文件 代码 · 共 33 行
H
33 行
/* * Signal conversion routines * * Bruce T. Lowerre, Public domain, 1995, 1997 * * $Log: sigcvt.h,v $ * Revision 1.1 1997/05/13 14:55:17 lowerre * Initial revision * * *//* * This header file defines the sigconvert class structure. This is used to * convert mu-law and a-law byte samples to 16 bit linear. */#ifndef SIGCONVERT_H#define SIGCONVERT_Hclass sigconvert{ private: static short mulawtable[]; static short alawtable[]; public: short mulaw_to_short (unsigned char smp) {return (mulawtable[smp]);} short alaw_to_short (unsigned char smp) {return (alawtable[smp]);}}; // end class sigconvert#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?