Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Attributes | List of all members
C_Music Class Reference

Handles music using SDL_Mixer. More...

#include <C_Music.h>

Collaboration diagram for C_Music:
Collaboration graph

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...
 

Detailed Description

Handles music using SDL_Mixer.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

C_Music::C_Music ( std::string  file)

Constructs the Music object.

Parameters
fileThe file to be loaded.

Here is the call graph for this function:

C_Music::~C_Music ( )

Destructs the Music object.

Member Function Documentation

void C_Music::muteMusic ( )

Mute the Music.

void C_Music::startMusic ( )

Starts the Music playing, also checks if not playing and starts again.

Here is the caller graph for this function:

void C_Music::stopMusic ( )

Stops the Music playing.

Here is the caller graph for this function:

void C_Music::unmuteMusic ( )

Unmute the Music.

Member Data Documentation

Mix_Music* C_Music::music
private

Variable for the music.


The documentation for this class was generated from the following files: