|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <audio.h>
Public Member Functions | |
| ~Track () | |
| Track (const Track &)=delete | |
| Track & | operator= (const Track &)=delete |
| void | Play () |
| From the start. | |
| void | Stop () |
| bool | playing () const |
| void | SetVolume (float volume) |
| From nothing to the file's own loudness. | |
| void | Update () |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< Track > > | Load (const AudioDevice &device, const std::string &path) |
| Loading needs the device, so it takes one, even though it doesn't use it. | |
A piece of music, which raylib streams from its file as it plays, a little at a time, so that the whole song never sits decoded in memory.
|
delete |
|
static |
| void nanommo::Track::SetVolume | ( | float | volume | ) |
| void nanommo::Track::Update | ( | ) |