Contains jngl::Finally class.
An audio channel, different channels could be for example: "Music", "Speech" and "Sound Effects".
Finally pause()
Pauses the Channel; destroying the returned Finally object will resume again.
static Channel & main()
Returns the main Channel on which jngl::play, jngl::loop, jngl::stop operate.
void setVolume(float volume)
Set volume of this channel in [0, ∞]. Default is 1.0f.
void remove(const Stream *)
Internal function for now.
void add(std::shared_ptr< Stream >)
Internal function for now.
void play(const std::string &filename)
Play OGG file on this channel.
std::shared_ptr< SoundFile > loop(const std::string &filename)
Play an OGG audio file on this channel in a loop.
void stop(const std::string &filename)
Stop OGG file playing on this channel.
Helper class which calls a function when being destroyed.