cb.h
来自「回音消除源码相关对研究这块的有帮助我就是用这个来做回音消除的」· C头文件 代码 · 共 70 行
H
70 行
// file: cb.h//// this file defines a circular buffer class//// make sure definitions are only made once//#ifndef __CB#define __CBclass Circular_buffer { //--------------------------------------------------------------------------- // // protected data // //---------------------------------------------------------------------------protected: // data information // int idx_d; int size_d; float *buf_d; //--------------------------------------------------------------------------- // // public methods // //---------------------------------------------------------------------------public: // constructors/destructors // Circular_buffer(); ~Circular_buffer(); // allocation // void allocate_cc(int num_elements); // indexing methods // int add_cc(float new_value); // overloaded operators // float operator() (int index); operator float() {return (float)buf_d[idx_d];} float& operator= (float value) { add_cc(value); return buf_d[idx_d]; } //--------------------------------------------------------------------------- // // private methods // //---------------------------------------------------------------------------private: // none};//// end of include file#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?