![]() |
Public API Reference |
#include <data.h>
Inheritance diagram for iSoundData:
Public Methods | |
virtual bool | Initialize (const csSoundFormat *fmt)=0 |
Prepare the sound for output using the given format. More... | |
virtual const csSoundFormat * | GetFormat ()=0 |
Get the format of the sound data. More... | |
virtual bool | IsStatic ()=0 |
Return true if this is a static sound, false if it is streamed. More... | |
virtual long | GetStaticSampleCount ()=0 |
Get size of this sound in samples (static sounds only). More... | |
virtual void * | GetStaticData ()=0 |
Get a pointer to the data buffer (static sounds only). More... | |
virtual void | ResetStreamed ()=0 |
Reset the sound to the beginning (streamed sounds only). More... | |
virtual void * | ReadStreamed (long &NumSamples)=0 |
Read a data buffer from the sound (streamed sounds only). More... |
It represents a sound file just after it was loaded. To play the sound, you must first prepare it and obtain a sound handle.
Definition at line 45 of file data.h.
|
Get the format of the sound data.
|
|
Get a pointer to the data buffer (static sounds only).
|
|
Get size of this sound in samples (static sounds only).
|
|
Prepare the sound for output using the given format.
|
|
Return true if this is a static sound, false if it is streamed.
|
|
Read a data buffer from the sound (streamed sounds only). The NumSamples parameter is modified to a smaller value if not all samples could be read (i.e. the stream is finished). The returned buffer is valid until the next call to Read(). |
|
Reset the sound to the beginning (streamed sounds only).
|