www.pudn.com > AudioWave.rar > WaveBase.h
#include//and add winnmm.lib to the project #if !defined(AFX_WAVEBASE_H__B5E74521_84C6_11D3_8583_5254ABDDD71D__INCLUDED_) #define AFX_WAVEBASE_H__B5E74521_84C6_11D3_8583_5254ABDDD71D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // WaveBase.h : header file // ///////////////////////////////////////////////////////////////////////////// // CWaveBASE command target class CWaveBase : public CCmdTarget { DECLARE_DYNCREATE(CWaveBase) CWaveBase(); // protected constructor used by dynamic creation // Attributes public: void Wave_ReadWaveData(char *,DWORD &); void Wave_SaveWaveData(char *,DWORD); BOOL Wave_OpenFile(); BOOL Wave_PrepareSaveFile(CString); void Wave_CloseSaveFile(); // Operations public: void Wave_CloseReadFile(); virtual ~CWaveBase();//change by Qiao BOOL m_bFileExist; DWORD m_ReadFileOffset; DWORD m_dFileSize; DWORD m_dwDataSize; WAVEFORMATEX m_WaveFormat; CString m_WaveFileName; DWORD m_dwDataOffset; private: HMMIO m_Readhmmio,m_Savehmmio; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWaveBase) //}}AFX_VIRTUAL // Implementation protected: MMCKINFO m_mmckinfoWave; MMCKINFO m_mmckinfoFmt; MMCKINFO m_mmckinfoData; MMCKINFO m_mmckinfoFact; /*The MMCKINFO structure contains information about a chunk in a RIFF file. typedef struct { FOURCC ckid; DWORD cksize; FOURCC fccType; DWORD dwDataOffset; DWORD dwFlags; } MMCKINFO; */ //virtual ~CWaveBase();// // Generated message map functions //{{AFX_MSG(CWaveBase) // NOTE - the ClassWizard will add and remove member functions here. //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_WAVEBASS_H__B5E74521_84C6_11D3_8583_5254ABDDD71D__INCLUDED_)