nwavfile.h
Go to the documentation of this file.00001 #ifndef N_WAVFILE_H
00002 #define N_WAVFILE_H
00003
00014 #include "audio3/naudiofile.h"
00015
00016
00017 class nWavFile : public nAudioFile
00018 {
00019 public:
00021 nWavFile();
00023 virtual ~nWavFile();
00025 virtual bool Open(const nString& filename);
00027 virtual void Close();
00029 virtual uint Read(void* buffer, uint bytesToRead);
00031 virtual bool Reset();
00033 virtual int GetSize() const;
00035 virtual WAVEFORMATEX* GetFormat() const;
00036
00037 private:
00039 bool ReadMMIO();
00041 void InstallMMIOProc();
00043 void UninstallMMIOProc();
00044
00045 static bool mmioProcInstalled;
00046
00047 WAVEFORMATEX* m_pwfx;
00048 HMMIO m_hmmio;
00049 MMCKINFO m_ck;
00050 MMCKINFO m_ckRiff;
00051 DWORD m_dwSize;
00052 MMIOINFO m_mmioinfoOut;
00053 ULONG m_ulDataSize;
00054 };
00055
00056 #endif
00057