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

📄 waveodev.h

📁 西安电子科技大学王亚民教授所著《组态软件设计与开发》附带的源代码07章
💻 H
字号:
// waveodev.h : header file
//

#ifndef __WAVEODEV__
#define __WAVEODEV__

#include "wavdevwn.h"

/////////////////////////////////////////////////////////////////////////////
// CWaveOutDevice object

class CWave;

class CWaveOutDevice : public CObject
{

// Attributes
public:
    BOOL IsOpen(); 
    BOOL CanDoFormat(WAVEFORMATEX* pFormat);

// Operations
public:
    CWaveOutDevice();
    BOOL Open(WAVEFORMATEX* pFormat);
    BOOL Close();
    BOOL Play(CWave* pWave);
    void Stop();
    void WaveOutDone(CWave* pWave, WAVEHDR* pHdr);

// Implementation
public:
    virtual ~CWaveOutDevice();

private:
    HWAVEOUT m_hOutDev;             // Output device handle
    int m_iBlockCount;              // Number of blocks in the queue
    CWaveDevWnd* m_pCallbackWnd;    // Pointer to callback window

};

// some global items
extern CWaveOutDevice theDefaultWaveOutDevice;

/////////////////////////////////////////////////////////////////////////////
#endif // __WAVEODEV__

⌨️ 快捷键说明

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