"L. Spiro Engine"
|
A way to stream audio data from .wav files. More...
#include <LSSWaveStreamingSoundSourceStreamer.h>
Public Member Functions | |
LSE_CALLCTOR | CWaveStreamingSoundSourceStreamer (const LSCHAR *_pcFile, CAllocator *_paAllocator) |
virtual LSBOOL LSE_CALL | GetData (LSUINT64 _ui64From, LSUINT64 &_ui64Length, LSUINT8 *&_pui8Data, CAllocator *_paAllocator) const |
virtual LSUINT32 LSE_CALL | GetType () const |
virtual const LSCHAR *LSE_CALL | GetName () const |
virtual LSUINT32 LSE_CALL | GetFrequency () const |
virtual LSUINT32 LSE_CALL | GetBits () const |
virtual LSUINT32 LSE_CALL | GetChannels () const |
virtual LSUINT64 LSE_CALL | GetAudioLength () const |
Protected Attributes | |
LSCHAR * | m_pcPath |
CAllocator * | m_paAllocator |
CFileMap | m_fmMap |
CWaveLoader::LSE_WAVE_FILE_INFO | m_wfiInfo |
LSUINT64 | m_ui64SoundTime |
A way to stream audio data from .wav files.
Class CWaveStreamingSoundSourceStreamer Description: Uses the IStreamingSoundSourceStreamer interface to provide a way to stream audio data from a wave file into a CStreamingSoundSource object.
virtual LSUINT64 LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetAudioLength | ( | ) | const [virtual] |
Get the length of the data in microseconds.
Implements lss::IStreamingSoundSourceStreamer.
virtual LSUINT32 LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetBits | ( | ) | const [virtual] |
Get the number of bits per channel of the data.
Implements lss::IStreamingSoundSourceStreamer.
virtual LSUINT32 LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetChannels | ( | ) | const [virtual] |
Get the number of channels of the data.
Implements lss::IStreamingSoundSourceStreamer.
virtual LSBOOL LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetData | ( | LSUINT64 | _ui64From, |
LSUINT64 & | _ui64Length, | ||
LSUINT8 *& | _pui8Data, | ||
CAllocator * | _paAllocator | ||
) | const [virtual] |
Retrieve sound data for use by the CStreamingSoundSource class.
_ui64From | The offset within the data source to get the data, in microseconds. |
_ui64Length | The length of the data to get, in microseconds. If the function succeeds, this holds the returned length of the data in bytes. |
_pui8Data | The returned data. |
_paAllocator | The allocator to be used to allocate the data to which _pui8Data will point on a successful return. |
Implements lss::IStreamingSoundSourceStreamer.
virtual LSUINT32 LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetFrequency | ( | ) | const [virtual] |
Get the frequency of the data.
Implements lss::IStreamingSoundSourceStreamer.
virtual const LSCHAR* LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetName | ( | ) | const [virtual] |
Get the name of the streamer. Here it is the file path.
Implements lss::IStreamingSoundSourceStreamer.
virtual LSUINT32 LSE_CALL lss::CWaveStreamingSoundSourceStreamer::GetType | ( | ) | const [virtual] |
Get the type of this streamer. Returns LSS_ST_WAVEFILE along with the parent type.
Implements lss::IStreamingSoundSourceStreamer.
CFileMap lss::CWaveStreamingSoundSourceStreamer::m_fmMap [protected] |
The file map we use to get data from the file.
CAllocator* lss::CWaveStreamingSoundSourceStreamer::m_paAllocator [protected] |
The allocator we use.
LSCHAR* lss::CWaveStreamingSoundSourceStreamer::m_pcPath [protected] |
The path to this wave file in UTF-8 format. This also serves as the name of the object.
LSUINT64 lss::CWaveStreamingSoundSourceStreamer::m_ui64SoundTime [protected] |
Length of the sound in microseconds.
The wave file information.