Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
C_Music.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <SDL_mixer.h>
5 #include <string>
6 #include "C_Utilities.h"
7 
12 class C_Music
13 {
14 public:
19  C_Music(std::string file);
20 
24  ~C_Music();
25 
29  void startMusic();
30 
34  void stopMusic();
35 
39  void muteMusic();
40 
44  void unmuteMusic();
45 
46 private:
48  Mix_Music* music;
49 };
void stopMusic()
Stops the Music playing.
Definition: C_Music.cpp:33
void muteMusic()
Mute the Music.
Definition: C_Music.cpp:39
~C_Music()
Destructs the Music object.
Definition: C_Music.cpp:14
C_Music(std::string file)
Constructs the Music object.
Definition: C_Music.cpp:3
void unmuteMusic()
Unmute the Music.
Definition: C_Music.cpp:45
Handles music using SDL_Mixer.
Definition: C_Music.h:12
Mix_Music * music
Variable for the music.
Definition: C_Music.h:48
void startMusic()
Starts the Music playing, also checks if not playing and starts again.
Definition: C_Music.cpp:23