Wave.h
资源名称:AudioWave.rar [点击查看]
上传用户:huifengb
上传日期:2007-12-27
资源大小:334k
文件大小:1k
源码类别:
多媒体
开发平台:
Visual C++
- // Wave.h: interface for the CWave class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_WAVE_H__3ADD476E_009E_11D4_B830_5254ABDD4852__INCLUDED_)
- #define AFX_WAVE_H__3ADD476E_009E_11D4_B830_5254ABDD4852__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CWave
- {
- public:
- CWave();
- virtual ~CWave();
- int GetDevices (void);
- BOOL LoadFromDisk (CString);
- //BOOL CWave::LoadFromDisk(CString,DWORD,DWORD);//added by myself;
- BOOL LoadFromRes (CString, HINSTANCE);
- void Close (void);
- BOOL Play (BOOL bLoop = FALSE);
- void Stop (void);
- BOOL Record (void);
- BOOL Save (CString);
- static BOOL PlayFromDisk (CString);
- static BOOL PlayFromRes (CString, HINSTANCE);
- void *AllocMem (DWORD);//2000/5/26
- private:
- //void *AllocMem (DWORD);
- void FreeMem (void far *);
- int m_nType;
- BOOL m_bRecording;
- BOOL m_bOpened;
- void *m_pSoundData;
- WORD m_wDeviceID;
- HANDLE m_hResHandle;
- HINSTANCE m_hInstance;
- };
- #endif // !defined(AFX_WAVE_H__3ADD476E_009E_11D4_B830_5254ABDD4852__INCLUDED_)