#include <soundhandler.h>
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. | |
Definition at line 24 of file soundhandler.h.
| enum SoundHandler::SFX |
| 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().
1.5.8