1#ifndef NANOMMO_CLIENT_JUKEBOX_H_
2#define NANOMMO_CLIENT_JUKEBOX_H_
15 static constexpr float kRest = 45.0f;
22 Cue Update(
float seconds,
bool in_world,
bool playing);
25 float volume()
const {
return volume_; }
30 bool started_ =
false;
Cue Update(float seconds, bool in_world, bool playing)
Cue
What the track should do this frame.
static constexpr float kFadeIn
In seconds.
float volume() const
From nothing to the track's full volume.
static constexpr float kFadeOut
static constexpr float kRest