#include <SoundFlex.h>
Inheritance diagram for SoundFlex:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
SoundFlex (IDataSource *ds) | |
~SoundFlex () | |
Pentagram::AudioSample * | getSample (uint32 index) |
virtual void | cache (uint32 index) |
virtual void | uncache (uint32 index) |
virtual bool | isCached (uint32 index) |
Private Attributes | |
Pentagram::AudioSample ** | samples |
Definition at line 28 of file SoundFlex.h.
SoundFlex::SoundFlex | ( | IDataSource * | ds | ) |
SoundFlex::~SoundFlex | ( | ) |
void SoundFlex::cache | ( | uint32 | index | ) | [virtual] |
Cache a single object.
Implements Pentagram::Archive.
Definition at line 39 of file SoundFlex.cpp.
References Pentagram::Archive::count, Pentagram::Archive::getRawObject(), and samples.
SoundFlex::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Pentagram::AudioSample* SoundFlex::getSample | ( | uint32 | index | ) | [inline] |
Get an audiosample.
Definition at line 37 of file SoundFlex.h.
References Pentagram::Archive::cache(), Pentagram::Archive::count, and samples.
Referenced by AudioProcess::continueSpeech(), SpeechFlex::getSpeechLength(), AudioProcess::playSFX(), and AudioProcess::playSpeech().
bool SoundFlex::isCached | ( | uint32 | index | ) | [virtual] |
Check if an object is cached.
Implements Pentagram::Archive.
Definition at line 69 of file SoundFlex.cpp.
References Pentagram::Archive::count, and samples.
void SoundFlex::uncache | ( | uint32 | index | ) | [virtual] |
Uncache a single object Potentially dangerous. See uncache()
Implements Pentagram::Archive.
Definition at line 60 of file SoundFlex.cpp.
References Pentagram::Archive::count, and samples.
Pentagram::AudioSample** SoundFlex::samples [private] |
Definition at line 49 of file SoundFlex.h.
Referenced by cache(), getSample(), SpeechFlex::getSpeechLength(), isCached(), SoundFlex(), uncache(), and ~SoundFlex().