Level H Engine
|
Handles music using SDL_Mixer. More...
#include <Music.h>
Public Member Functions | |
Music (std::string file) | |
Constructs the Music object. More... | |
~Music () | |
Destructs the Music object. More... | |
void | startMusic () |
Starts the Music playing, also checks if not playing and starts again. More... | |
void | stopMusic () |
Stops the Music playing. More... | |
void | muteMusic () |
Mute the Music. More... | |
void | unmuteMusic () |
Un-mute the Music. More... | |
Private Attributes | |
Mix_Music * | music |
Variable for the music. More... | |
Handles music using SDL_Mixer.
Music::Music | ( | std::string | file | ) |
Constructs the Music object.
file | The file to be loaded. |
Music::~Music | ( | ) |
Destructs the Music object.
void Music::muteMusic | ( | ) |
Mute the Music.
void Music::startMusic | ( | ) |
Starts the Music playing, also checks if not playing and starts again.
void Music::stopMusic | ( | ) |
Stops the Music playing.
void Music::unmuteMusic | ( | ) |
Un-mute the Music.
|
private |
Variable for the music.