?? display.h
字號(hào):
#if !defined DISPLAY_H
#define DISPLAY_H
#include "active.h"
#include "fft.h"
#include "smartptrs.h"
class ViewWave;
class ViewFreq;
class Painter: public ActiveObject
{
public:
Painter (
HWND hwnd,
ViewWave& viewWave,
ViewFreq& viewFreq,
int samplesPerBuf,
int samplesPerSec,
int fftPoints);
bool ReInit (
int samplesPerBuf,
int samplesPerSec,
int fftPoints,
int bitsPerSample);
bool Start ();
void Stop ();
int HzToPoint (int hz)
{
Lock lock (_mutex);
return _pFftTransformer->HzToPoint (hz);
}
int Points ()
{
Lock lock (_mutex);
return _pFftTransformer->Points ();
}
private:
void InitThread () {}
void Run ();
void FlushThread ();
void LokWaveInData ();
ViewWave &_viewWave;
ViewFreq &_viewFreq;
int _samplesPerBuf;
int _samplesPerSecond;
int _fftPoints;
int _bitsPerSample;
HWND _hwnd;
Mutex _mutex;
Event _event;
PtrRecorder _pRecorder;
PtrFft _pFftTransformer;
};
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -