waveodev.h
来自「西安电子科技大学王亚民教授所著《组态软件设计与开发》附带的源代码07章」· C头文件 代码 · 共 47 行
H
47 行
// 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 + =
减小字号Ctrl + -
显示快捷键?