Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cSoundFile.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cSoundFile_H
6 #define _INC_cSoundFile_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "../AV/cSoundObject.h"
13 
14 namespace GrayLib
15 {
17  {
22 
23  typedef cSoundObject SUPER_t;
24 
25  public:
27 
28  public:
29  cSoundFile(const FILECHAR_t* pszFilePath);
30  virtual ~cSoundFile();
31 
32  // Load on demand.
33  virtual HRESULT LoadResource();
34 
35  // ISoundObject
36  virtual size_t get_WaveDataLength() override;
37  virtual const void* get_WaveData() override;
38  virtual const cWaveFormatEx* get_WaveFormat() override;
39 
41  };
42 
44  {
47  public:
48  cSoundFileObj(const FILECHAR_t* pszFile) : cSoundFile(pszFile)
49  {
50  }
51  virtual ~cSoundFileObj()
52  {
53  }
55  };
56 }
57 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cSoundFile.h:44
virtual ~cSoundFileObj()
Definition: cSoundFile.h:51
cSoundFileObj(const FILECHAR_t *pszFile)
Definition: cSoundFile.h:48
Definition: cSoundFile.h:17
cStringF m_sFilePath
the file that contains the sound data.
Definition: cSoundFile.h:26
UNITTEST_FRIEND(cSoundFile)
Definition: cSoundObject.h:19
Definition: cWaveFormat.h:73
Definition: cRefPtr.h:22
Definition: cMesh.h:22
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22