www.pudn.com > audioTest.rar > WaveInterface.h
// WaveInterface.h: interface for the CWaveInterface class.
//CWaveInterface lists all available devices and their names.
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WAVEINTERFACE_H__EE06338A_DF8D_4F13_9E80_39C7281E468D__INCLUDED_)
#define AFX_WAVEINTERFACE_H__EE06338A_DF8D_4F13_9E80_39C7281E468D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CWaveInterface
{
public:
////return the device name for input device at index nIndex.
static CString GetWaveInName(UINT nIndex);
//return the number of input devices detected
static UINT GetWaveInCount();
//return the device name for output device at index nIndex
static CString GetWaveOutName(UINT nIndex);
//return the number of output devices detected
static UINT GetWaveOutCount();
CWaveInterface();
virtual ~CWaveInterface();
};
#endif // !defined(AFX_WAVEINTERFACE_H__EE06338A_DF8D_4F13_9E80_39C7281E468D__INCLUDED_)