SoundHandler Class Reference

Game sounds handler. More...

#include <soundhandler.h>

List of all members.

Public Types

enum  SFX { ACTION, THEME }
 Sound effects available. More...

Public Member Functions

 SoundHandler ()
 Default constructor.
void Init ()
 Initializer.
void PlayEffect (SFX sfx)
 Load an effect in memory if it's not loaded and then play it.
void StopEffect (SFX sfx)
 Stop playing an effect.
void UnloadEffect (SFX sfx)
void UnloadEffects ()
 ~SoundHandler ()
 Destructor.

Private Attributes

mm_sfxhand * sfx_handlers_
 SFX handler vector.
bool * loaded_sfx_
 SFX loaded or not vector.
mm_sound_effect * sfx_available_
 Structures for all the sound effects available in the sound bank.


Detailed Description

Game sounds handler.

Definition at line 24 of file soundhandler.h.


Member Enumeration Documentation

Sound effects available.

Enumerator:
ACTION  Sound played when doing an action.
THEME  Main theme for the main menu.

Definition at line 28 of file soundhandler.h.


Member Function Documentation

void SoundHandler::UnloadEffect ( SFX  sfx  ) 

Unload an specific effect from memory. Will stop playing before unload in case it were being played.

Definition at line 91 of file soundhandler.cpp.

Referenced by DSMemorizer::Init().

void SoundHandler::UnloadEffects (  ) 

Unload all the effects. Will stop playing before unload in case any were being played.

Definition at line 98 of file soundhandler.cpp.

Referenced by ~SoundHandler().


The documentation for this class was generated from the following files:

Generated on Fri Oct 2 10:25:29 2009 for DSMemorizer by  doxygen 1.5.8