Public Member Functions | |
AudioManager () | |
Mix_Music * | getMusic () const |
const char * | getPlayingMusic () const |
bool | inittedSuccesfully () const |
void | playMusic (const char *filename) |
void | playSound (Sound *sound) const |
~AudioManager () | |
Private Attributes | |
bool | initted |
Mix_Music * | music |
char | musicFileName [DEFAULT_STRING_SIZE] |
Annchienta::AudioManager::AudioManager | ( | ) |
Annchienta::AudioManager::~AudioManager | ( | ) |
Mix_Music* Annchienta::AudioManager::getMusic | ( | ) | const |
const char* Annchienta::AudioManager::getPlayingMusic | ( | ) | const |
bool Annchienta::AudioManager::inittedSuccesfully | ( | ) | const |
Checks if the AudioManager was succesfully initted.
void Annchienta::AudioManager::playMusic | ( | const char * | filename | ) |
Starts streaming background music. When the file given is already playing, nothing will happen. If other music is already playing, that music will be stopped first.
filename | Music to stream. |
void Annchienta::AudioManager::playSound | ( | Sound * | sound | ) | const |
bool Annchienta::AudioManager::initted [private] |
Mix_Music* Annchienta::AudioManager::music [private] |
char Annchienta::AudioManager::musicFileName[DEFAULT_STRING_SIZE] [private] |