snd::SoundAbstract Class Reference

Abstract Sound class (also used as a NOP class). More...

#include <snd.hh>

Inheritance diagram for snd::SoundAbstract:

snd::SoundPlib

List of all members.

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)


Detailed Description

Abstract Sound class (also used as a NOP class).

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.


Member Enumeration Documentation

anonymous enum

Enumerator:
LOOP 
ONCE 


Constructor & Destructor Documentation

snd::SoundAbstract::SoundAbstract ( void   )  [inline, protected]

virtual snd::SoundAbstract::~SoundAbstract ( void   )  [inline, protected, virtual]


Member Function Documentation

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.


The documentation for this class was generated from the following file: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:32 2007