www.pudn.com > audioTest.rar > WaveDevice.h


// WaveDevice.h: interface for the CWaveDevice class. 
//CWaveDevice take care of sound devices for the CWave class. 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_WAVEDEVICE_H__A9247A37_F173_402A_9A34_564565121B63__INCLUDED_) 
#define AFX_WAVEDEVICE_H__A9247A37_F173_402A_9A34_564565121B63__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Wave.h" 
 
class CWaveDevice   
{ 
public: 
	CWaveDevice(const CWaveDevice©); 
	// Return the MS Windows device number. 
	UINT GetDevice() const; 
	// Return true if the wave can be played. 
	bool IsOutputFormat(const CWave &wave); 
	// Return true if the wave can be record. 
	bool IsInputFormat(const CWave &wave); 
	CWaveDevice(UINT nDevice=0 /*WAVE_MAPPER*/);//what is WAVE_MAPPER 
	virtual ~CWaveDevice(); 
	void setSpecializedDevice(UINT t); 
private: 
	UINT m_nDevice; 
}; 
 
#endif // !defined(AFX_WAVEDEVICE_H__A9247A37_F173_402A_9A34_564565121B63__INCLUDED_)