sinegen.h

来自「Fax and soft modem source code. - Slow m」· C头文件 代码 · 共 15 行

H
15
字号
typedef unsigned int uint;

struct sinegen
  { sinegen(float);
    void setfreq(float);
    float fnext();
    complex cnext();
    void resetphase() { ptr = 0;	  }
    void flipphase()  { ptr ^= (1 << 31); }
private:
    uint ptr;
    int phinc;
  };

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?