![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSoundFile.h>
Public Member Functions | |
cSoundFile (const FILECHAR_t *pszFilePath) | |
virtual | ~cSoundFile () |
virtual HRESULT | LoadResource () |
virtual size_t | get_WaveDataLength () override |
virtual const void * | get_WaveData () override |
virtual const cWaveFormatEx * | get_WaveFormat () override |
UNITTEST_FRIEND (cSoundFile) | |
![]() | |
bool | isSoundLoaded () const noexcept |
void | UnloadSoundObject () |
virtual HRESULT | OnHeaderStream (const cAVHeaderStream &head, const void *pForm, size_t nSizeForm) override |
virtual HRESULT | OnFrame (const cAVHeaderFrame &head, const void *pData, size_t nSizeData) override |
HRESULT | LoadSoundMP3 (cStreamInput &stmIn) |
HRESULT | LoadSoundWAV (cStreamInput &stmIn) |
HRESULT | LoadSoundFile (const FILECHAR_t *pszFilePath) |
![]() | |
virtual | ~cAVSink () |
virtual HRESULT | OnHeaderOpen (const cAVHeader &head) |
virtual HRESULT | OnHeaderClose () |
virtual HRESULT | OnClose () |
Public Attributes | |
cStringF | m_sFilePath |
the file that contains the sound data. More... | |
![]() | |
cWaveFormat | m_wf |
Sound/Wave format info. More... | |
cHeapBlock | m_Data |
Read the full contents into memory as one block. PCM or compressed blocks. More... | |
a generic sound file reader. Maybe from MIME_EXT_wav or MIME_EXT_mp3. Load on demand into memory for playing. cMP3FileReader or cWaveFileReader. User must handle IUNKNOWN_DISAMBIG(cRefBase)
GrayLib::cSoundFile::cSoundFile | ( | const FILECHAR_t * | pszFilePath | ) |
just store the name to load the data later on demand.
|
virtual |
|
overridevirtual |
ISoundObject Lazy Load on demand.
Reimplemented from GrayLib::cSoundObject.
|
overridevirtual |
ISoundObject Lazy Load on demand.
Reimplemented from GrayLib::cSoundObject.
|
overridevirtual |
ISoundObject Lazy Load on demand.
Reimplemented from GrayLib::cSoundObject.
|
virtual |
Lazy Load all the sound data into memory on demand.
GrayLib::cSoundFile::UNITTEST_FRIEND | ( | cSoundFile | ) |
cStringF GrayLib::cSoundFile::m_sFilePath |
the file that contains the sound data.