cancel.h
来自「Fax and soft modem source code. - Fast V」· C头文件 代码 · 共 20 行
H
20 行
struct canceller
{ canceller(float d) { delta = d; reset(); }
void reset();
void insert(complex); /* put new Tx value into canceller */
complex get(); /* get predicted echo value */
void update(complex); /* given eps, update coeffs */
void print(char*); /* print coeffs */
private:
const int size = 2048; /* power of 2, large enough so (size + ebeg - TRDELAY) is +ve */
const int ebeg = -60; /* start of near-end echo response (samples) */
const int eend = 30; /* end of near-end echo response (samples) */
const int ncs = (eend-ebeg) / (SYMBLEN/2); /* num. of coeffs */
complex coeffs[ncs]; /* vectors of coefficients */
complex in[size]; /* circular buffer for input samples */
int next; /* ptr to next place to insert */
float delta;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?