![]() |
The small3d framework
|
Class that loads and plays a sound from an ogg file. More...
#include <Sound.hpp>
Public Member Functions | |
| Sound () | |
| Default constructor. | |
| Sound (const std::string soundFilePath) | |
| Ogg file loading constructor. More... | |
| ~Sound () | |
| Destructor. | |
| void | play (const bool repeat=false) |
| Play the sound. More... | |
| void | stop () |
| Stop playing the sound. | |
| Sound (const Sound &other) | |
| Copy constructor. | |
| Sound (const Sound &&other) | |
| Move constructor. | |
| Sound & | operator= (const Sound &other) |
| Copy assignment. | |
| Sound & | operator= (const Sound &&other) |
| Move assignment. | |
Class that loads and plays a sound from an ogg file.
| small3d::Sound::Sound | ( | const std::string | soundFilePath | ) |
Ogg file loading constructor.
| soundFilePath | The path to the ogg file from which to load the sound. |
| void small3d::Sound::play | ( | const bool | repeat = false | ) |
Play the sound.
| repeat | Repeat the sound after it ends? |
1.8.15