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

📄 views.h

📁 声卡的数据分析,用于采集声卡的数据进行分析
💻 H
字号:
#if !defined VIEWS_H
#define VIEWS_H

#include "controls.h"
#include "canvas.h"

class Fft;
class SampleIter;

class ViewFreq: public SimpleControl
{
public:
    ViewFreq (HWND hwndParent, int id) 
        : SimpleControl (hwndParent, id),
          _xRecord(0) {}
    void Update (Fft const & fftTransformer);
    void Clear ();
    void Fake ();
private:
    int         _xRecord;
};

class ViewWave: public SimpleControl
{
public:
    ViewWave (HWND hwndParent, int id, int cSamples) 
        : SimpleControl (hwndParent, id),
          _poly (cSamples),		  
          _penGreen (RGB(0, 255, 128))		  
    {}
    void Update (Fft const & fftTransformer);
private:
    PolyLine    _poly;
    Pen         _penGreen;	
};

#endif

⌨️ 快捷键说明

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