Level H Engine
Public Member Functions | Private Attributes | List of all members
Music Class Reference

Handles music using SDL_Mixer. More...

#include <Music.h>

Collaboration diagram for Music:
Collaboration graph

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

Detailed Description

Handles music using SDL_Mixer.

Constructor & Destructor Documentation

◆ Music()

Music::Music ( std::string  file)

Constructs the Music object.

Parameters
fileThe file to be loaded.
Here is the call graph for this function:

◆ ~Music()

Music::~Music ( )

Destructs the Music object.

Member Function Documentation

◆ muteMusic()

void Music::muteMusic ( )

Mute the Music.

◆ startMusic()

void Music::startMusic ( )

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

Here is the caller graph for this function:

◆ stopMusic()

void Music::stopMusic ( )

Stops the Music playing.

◆ unmuteMusic()

void Music::unmuteMusic ( )

Un-mute the Music.

Member Data Documentation

◆ music

Mix_Music* Music::music
private

Variable for the music.


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