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

📄 smartptrs.h

📁 声卡的数据分析,用于采集声卡的数据进行分析
💻 H
字号:
#if !defined SMART_PTRS_H
#define SMART_PTRS_H
//------------------------------------
//  smartptrs.h
//  Smart pointers to objects
//  (c) Bartosz Milewski, 1996
//------------------------------------

#include "recorder.h"
#include "fft.h"
#include "xptr.h"

class PtrRecorder : public XPtr<Recorder>
{
public:
    PtrRecorder (int cSamples, 
                 int cSamplePerSec)
        : XPtr<Recorder>(new RecorderM16 (cSamples, cSamplePerSec)) 
    {}

    void ReInit (int bitsPerSample,
                 int cSamples, 
                 int cSamplePerSec);
};

class PtrFft : public XPtr<Fft>
{
public:
    PtrFft (int points, long sampleRate)
        : XPtr<Fft> (new Fft (points, sampleRate))
    {}

    void ReInit (int points, long sampleRate);
};

#endif

⌨️ 快捷键说明

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