AudioFile.h
资源名称:111.rar [点击查看]
上传用户:mony888
上传日期:2022-07-26
资源大小:1247k
文件大小:1k
源码类别:
Windows CE
开发平台:
Visual C++
- #ifndef _AUDIOFILE_H_
- #define _AUDIOFILE_H_
- #include <windows.h>
- #include <dsound.h>
- enum OpenMod{ READ, WRIT };
- class AudioFile
- {
- public:
- AudioFile();
- virtual ~AudioFile();
- MMRESULT ToOpen(LPCTSTR lpFileName, PVOID pFilehdr, DWORD cbHdrSiz, OpenMod Flags);
- MMRESULT ToWrit(PBYTE pData, DWORD cbSiz2Writ, PDWORD pcbSizWrot);
- MMRESULT ToRead(PBYTE pBuf, DWORD cbSiz2Read, PDWORD pcbSizRead);
- BOOL ToClos();
- protected:
- HANDLE m_fh;
- // CHAR m_strFileName[128];
- PVOID m_pFileHdr;
- DWORD m_dwHdrSiz;
- DWORD m_dwSize;
- DWORD m_dwFlags;
- private:
- };
- #endif