SFXWavStream
Engine/source/sfx/media/sfxWavStream.h
An SFXFileStream that loads sample data from a WAV file.
Public Types
Parent
Protected Attributes
The file position of the start of the PCM data for fast reset().
Protected Functions
bool
Overloaded in the derived classes to read the file header.
Public Static Functions
Public Functions
SFXWavStream(const SFXWavStream & cloneFrom)
Destructor.
setPosition(U32 pos)
Set the current position to be "pos".
Detailed Description
An SFXFileStream that loads sample data from a WAV file.
Public Types
typedef SFXFileStream Parent
Protected Attributes
U32 mDataStart
The file position of the start of the PCM data for fast reset().
Protected Functions
_close()
Reimplemented from: SFXFileStream
_readHeader()
Reimplemented from: SFXFileStream
Public Static Functions
create(Stream * stream)
Public Functions
SFXWavStream()
SFXWavStream(const SFXWavStream & cloneFrom)
~SFXWavStream()
Destructor.
clone()
Reimplemented from: SFXStream
getPosition()
Reimplemented from: IPositionable
read(U8 * buffer, U32 length)
Reimplemented from: SFXStream
reset()
Reimplemented from: SFXStream
setPosition(U32 pos)
Reimplemented from: IPositionable