SoundFlex Class Reference

#include <SoundFlex.h>

Inheritance diagram for SoundFlex:

Pentagram::Archive SpeechFlex List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 SoundFlex (IDataSource *ds)
 ~SoundFlex ()
Pentagram::AudioSamplegetSample (uint32 index)
virtual void cache (uint32 index)
virtual void uncache (uint32 index)
virtual bool isCached (uint32 index)

Private Attributes

Pentagram::AudioSample ** samples

Detailed Description

Definition at line 28 of file SoundFlex.h.


Constructor & Destructor Documentation

SoundFlex::SoundFlex ( IDataSource ds  ) 

Definition at line 28 of file SoundFlex.cpp.

References samples.

SoundFlex::~SoundFlex (  ) 

Definition at line 33 of file SoundFlex.cpp.

References samples.


Member Function Documentation

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 (  ) 

Reimplemented from Pentagram::Archive.

Reimplemented in SpeechFlex.

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.


Member Data Documentation

Pentagram::AudioSample** SoundFlex::samples [private]

Definition at line 49 of file SoundFlex.h.

Referenced by cache(), getSample(), SpeechFlex::getSpeechLength(), isCached(), SoundFlex(), uncache(), and ~SoundFlex().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:58 2007 for pentagram by  doxygen 1.4.7