My Project
|
Music class. More...
#include <MyMusic.hpp>
Public Member Functions | |
MyMusic (std::string const &filename) | |
Construct a new My Music object. More... | |
~MyMusic () | |
Destroy the My Music object. More... | |
void | play () |
Play the music. More... | |
void | stop () |
Stop the music. More... | |
void | pause () |
Pause the music. More... | |
void | resume () |
Resume the music. More... | |
bool | isPlaying () const |
Check if the music is playing. More... | |
void | setVolume (float volume) |
Set the volume of the music. More... | |
float | getVolume () const |
Get the volume of the music. More... | |
void | updateStream () |
Update the stream. More... | |
Music class.
MyMusic::MyMusic | ( | std::string const & | filename | ) |
Construct a new My Music object.
filename | path to the music |
MyMusic::~MyMusic | ( | ) |
Destroy the My Music object.
float MyMusic::getVolume | ( | ) | const |
Get the volume of the music.
bool MyMusic::isPlaying | ( | ) | const |
Check if the music is playing.
void MyMusic::pause | ( | ) |
Pause the music.
void MyMusic::play | ( | ) |
Play the music.
void MyMusic::resume | ( | ) |
Resume the music.
void MyMusic::setVolume | ( | float | volume | ) |
Set the volume of the music.
volume | volume of the music |
void MyMusic::stop | ( | ) |
Stop the music.
void MyMusic::updateStream | ( | ) |
Update the stream.