My Project
Public Member Functions | List of all members
MyMusic Class Reference

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

Detailed Description

Music class.

Constructor & Destructor Documentation

◆ MyMusic()

MyMusic::MyMusic ( std::string const &  filename)

Construct a new My Music object.

Parameters
filenamepath to the music

◆ ~MyMusic()

MyMusic::~MyMusic ( )

Destroy the My Music object.

Member Function Documentation

◆ getVolume()

float MyMusic::getVolume ( ) const

Get the volume of the music.

Returns
float volume of the music

◆ isPlaying()

bool MyMusic::isPlaying ( ) const

Check if the music is playing.

Returns
true if the music is playing
false if the music is not playing

◆ pause()

void MyMusic::pause ( )

Pause the music.

◆ play()

void MyMusic::play ( )

Play the music.

◆ resume()

void MyMusic::resume ( )

Resume the music.

◆ setVolume()

void MyMusic::setVolume ( float  volume)

Set the volume of the music.

Parameters
volumevolume of the music

◆ stop()

void MyMusic::stop ( )

Stop the music.

◆ updateStream()

void MyMusic::updateStream ( )

Update the stream.


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