📄 lpc.h
字号:
/*
* LPC subroutine declarations
*/
#define LPC_FILTORDER 10
#define FRAMESIZE 160
typedef struct {
unsigned short period;
unsigned char gain;
char pad;
signed char k[LPC_FILTORDER];
} lpcparams_t;
/*
* we can't use 'sizeof(lpcparams_t)' because some compilers
* add random padding so define size of record that goes over net.
*/
#define LPCRECSIZE 14
typedef struct {
double Oldper, OldG, Oldk[LPC_FILTORDER + 1], bp[LPC_FILTORDER + 1];
int pitchctr;
} lpcstate_t;
int lpc_start(void);
void lpc_init(void /*lpcstate_t *state*/);
void lpc_analyze(const unsigned char *buf, lpcparams_t *params);
void lpc_synthesize(unsigned char *buf, lpcparams_t *params, lpcstate_t *state);
void lpc_end(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -