Handles music using SDL_Mixer. More...
#include <C_Music.h>

Public Member Functions | |
| C_Music (std::string file) | |
| Constructs the Music object. More... | |
| ~C_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 () |
| Unmute the Music. More... | |
Private Attributes | |
| Mix_Music * | music |
| Variable for the music. More... | |
Handles music using SDL_Mixer.
| C_Music::C_Music | ( | std::string | file | ) |
Constructs the Music object.
| file | The file to be loaded. |

| C_Music::~C_Music | ( | ) |
Destructs the Music object.
| void C_Music::muteMusic | ( | ) |
Mute the Music.
| void C_Music::startMusic | ( | ) |
Starts the Music playing, also checks if not playing and starts again.

| void C_Music::stopMusic | ( | ) |
Stops the Music playing.

| void C_Music::unmuteMusic | ( | ) |
Unmute the Music.
|
private |
Variable for the music.
1.8.8