#include <snd.hh>

Public Types | |
| enum | { LOOP = true, ONCE = false } |
Public Member Functions | |
| CLASS_METHOD SoundAbstract & | GetInstance (void) |
| CLASS_METHOD void | Disable (void) |
| virtual void | Play (const string &filename, const bool loop, const fp volume=DEFAULT_VOLUME) |
| virtual void | Stop (const string &filename) |
| virtual void | SetVolume (const string &filename, const fp volume) |
Protected Member Functions | |
| SoundAbstract (void) | |
| virtual | ~SoundAbstract (void) |
Sounds are identified/keyed by filename.
Sound class: ------------ Sound class is a Facade over a sound libary. If sound library isn't available, Sound class will be compiled as NOPs.
Disabling Sound: ---------------- Sound can only be disabled at program startup (before Sound::GetInstance()). Once disabled, it stays disabled.
Changing volume of a sample: ---------------------------- Changing the volume of a sample should be considered a slow operation.
| snd::SoundAbstract::SoundAbstract | ( | void | ) | [inline, protected] |
| virtual snd::SoundAbstract::~SoundAbstract | ( | void | ) | [inline, protected, virtual] |
| CLASS_METHOD SoundAbstract& snd::SoundAbstract::GetInstance | ( | void | ) | [inline] |
Reimplemented in snd::SoundPlib.
| CLASS_METHOD void snd::SoundAbstract::Disable | ( | void | ) | [inline] |
Reimplemented in snd::SoundPlib.
| virtual void snd::SoundAbstract::Play | ( | const string & | filename, | |
| const bool | loop, | |||
| const fp | volume = DEFAULT_VOLUME | |||
| ) | [inline, virtual] |
Reimplemented in snd::SoundPlib.
| virtual void snd::SoundAbstract::Stop | ( | const string & | filename | ) | [inline, virtual] |
Reimplemented in snd::SoundPlib.
| virtual void snd::SoundAbstract::SetVolume | ( | const string & | filename, | |
| const fp | volume | |||
| ) | [inline, virtual] |
Reimplemented in snd::SoundPlib.
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:32 2007