15 volume_ = std::max(volume_ - seconds /
kFadeOut, 0.0f);
19 volume_ = std::min(volume_ + seconds /
kFadeIn, 1.0f);
Cue Update(float seconds, bool in_world, bool playing)
Cue
What the track should do this frame.
static constexpr float kFadeIn
In seconds.
static constexpr float kFadeOut
static constexpr float kRest