Public Member Functions | |
| SoundManager () | |
| Constructor. | |
| ~SoundManager () | |
| Deconstructor. | |
| void | init () |
| Initialise the SoundManager. | |
| void | clear () |
| Clears the SoundManager. | |
| void | refAdd () |
| Increases the reference counter. | |
| void | refRelease () |
| Decreases the reference counter. | |
| f32 | getGlobalVolume () const |
| Gets the current global volume of all sounds. | |
| sf::SoundBuffer * | getSoundBuffer (const std::string &fileName) |
| Gets the sound buffer with the given filename. | |
| bool | loadSoundBuffer (const std::string &fileName) |
| Creates a sound buffer from the given file. | |
| void | removeAll () |
| Removes all sound buffers. | |
| bool | removeSoundBuffer (const std::string &fileName) |
| Removes the sound buffer with the given filename. | |
| void | setGlobalVolume (f32 volume) |
| Sets the global volume of all sounds. | |
Definition at line 25 of file SoundManager.h.
| SoundManager::SoundManager | ( | ) |
| SoundManager::~SoundManager | ( | ) |
| void SoundManager::clear | ( | ) |
| f32 SoundManager::getGlobalVolume | ( | ) | const |
| sf::SoundBuffer * SoundManager::getSoundBuffer | ( | const std::string & | fileName | ) |
Gets the sound buffer with the given filename.
| fileName | Name of the buffer to retrieve. |
Definition at line 65 of file SoundManager.cpp.
| void SoundManager::init | ( | ) |
| bool SoundManager::loadSoundBuffer | ( | const std::string & | fileName | ) |
Creates a sound buffer from the given file.
| fileName | Filename where the buffer should be loaded from. |
Definition at line 76 of file SoundManager.cpp.
| void SoundManager::refAdd | ( | ) |
Increases the reference counter.
Definition at line 47 of file SoundManager.cpp.
| void SoundManager::refRelease | ( | ) |
Decreases the reference counter.
Definition at line 53 of file SoundManager.cpp.
| void SoundManager::removeAll | ( | ) |
| bool SoundManager::removeSoundBuffer | ( | const std::string & | fileName | ) |
Removes the sound buffer with the given filename.
| fileName | Name of the buffer to remove. |
Definition at line 126 of file SoundManager.cpp.
| void SoundManager::setGlobalVolume | ( | f32 | volume | ) |
Sets the global volume of all sounds.
| volume | New global volume. |
Definition at line 146 of file SoundManager.cpp.
1.5.8