|
Dualie
|
A class that handles the playback of opus audio files. More...
#include <Music.hpp>
Public Member Functions | |
| void | loadFromFile (std::string path) |
| loads a opus file from romfs | |
| void | play () |
| Plays the opus music file loaded. | |
| void | restart () |
| Restarts the song from the beginning. If playback is stopped, it plays it. | |
| void | stop () |
| Stops the currently playing song. Maintains the current position of the music. | |
| void | setLooping (bool looping) |
| Sets whether the music should loop when finished. | |
A class that handles the playback of opus audio files.
| void dl::Music::loadFromFile | ( | std::string | path | ) |
loads a opus file from romfs
| path | The path of the file to open |
| void dl::Music::setLooping | ( | bool | looping | ) |
Sets whether the music should loop when finished.
| looping | Music should loop or not |