#include <SoundManager.h>
Public Member Functions | |
SoundManager () | |
virtual | ~SoundManager () |
virtual bool | playSound (const std::string &fileName) |
virtual void | stopSound () |
virtual void | switchPlaybackEnabledFlag () |
virtual bool | isPlaybackEnabled () |
Private Attributes | |
SoundPlayer | _soundPlayer |
bool | playbackEnabled |
std::string | resumingFileNameToBePlayed |
SoundManager implementing class.
Definition at line 9 of file SoundManager.h.
sound::SoundManager::SoundManager | ( | ) |
Main constructor.
virtual sound::SoundManager::~SoundManager | ( | ) | [virtual] |
virtual bool sound::SoundManager::isPlaybackEnabled | ( | ) | [inline, virtual] |
tachop: Returns if Sound Playback is enabled.
Implements ISoundManager.
Definition at line 39 of file SoundManager.h.
virtual bool sound::SoundManager::playSound | ( | const std::string & | fileName | ) | [virtual] |
greebo: Plays the sound file. Tries to resolve the filename's extension by appending .ogg or .wav and such.
Implements ISoundManager.
virtual void sound::SoundManager::stopSound | ( | ) | [virtual] |
greebo: Stops the playback immediately.
Implements ISoundManager.
virtual void sound::SoundManager::switchPlaybackEnabledFlag | ( | ) | [virtual] |
tachop: Switches Sound Playback Enabled flag.
Implements ISoundManager.
SoundPlayer sound::SoundManager::_soundPlayer [private] |
Definition at line 7 of file SoundManager.h.
bool sound::SoundManager::playbackEnabled [private] |
Definition at line 10 of file SoundManager.h.
Definition at line 14 of file SoundManager.h.