📄 sigcvt.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -