Contains jngl::Finally class.
 
Helper class which calls a function when being destroyed.
 
bool isPlaying(const std::string &filename)
 
void setVolume(float volume)
Set global volume in [0, ∞]. Default is 1.0f.
 
void setPlaybackSpeed(float speed)
Set global pitch in (0.0f, ∞]. Default is 1.0f.
 
void play(const std::string &filename)
Play an OGG audio file once.
 
std::shared_ptr< SoundFile > loop(const std::string &filename)
Play an OGG audio file in a loop.
 
void stop(const std::string &filename)
Stop an OGG audio file if it's currently playing.
 
Finally pauseAudio()
Pauses the playback of all audio; destroying the returned Finally object will resume again.