My Project
|
#include <MySound.hpp>
Public Member Functions | |
MySound (std::string const &texturePath) | |
Construct a new My Sound object. More... | |
~MySound () | |
Destroy the My Sound object. More... | |
void | play () |
Play the sound. More... | |
void | playMulti () |
Play the sound using a multichannel buffer pool. More... | |
void | stop () |
Stop the sound. More... | |
void | pause () |
Pause the sound. More... | |
void | resume () |
Resume the sound. More... | |
bool | isPlaying () const |
Check if the sound is playing. More... | |
void | setVolume (float volume) |
Set the volume of the sound. More... | |
MySound class.
MySound::MySound | ( | std::string const & | texturePath | ) |
Construct a new My Sound object.
MySound::~MySound | ( | ) |
Destroy the My Sound object.
bool MySound::isPlaying | ( | ) | const |
Check if the sound is playing.
void MySound::pause | ( | ) |
Pause the sound.
void MySound::play | ( | ) |
Play the sound.
void MySound::playMulti | ( | ) |
Play the sound using a multichannel buffer pool.
void MySound::resume | ( | ) |
Resume the sound.
void MySound::setVolume | ( | float | volume | ) |
Set the volume of the sound.
volume | volume of the sound |
void MySound::stop | ( | ) |
Stop the sound.