⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cancel.h

📁 Fax and soft modem source code. - Fast Version You can use this code to build a soft modem functi
💻 H
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -