Adjust the BGM volume, optionally over the course of several frames.
The target volume level.
The number of frames over which to adjust the volume.
A promise that resolves when the volume reaches the new level.
Temporarily override the normal BGM with a specific track, with optional crossfade.
SphereFS path of the music track to play.
Duration of the optional crossfade transition, in frames.
Change the track currently at the top of the music stack, with optional crossfade.
SphereFS path of the music track to play.
Duration of the optional crossfade transition, in frames.
Remove the music currently at the top of the music stack and resume the previously playing track.
Duration of the optional crossfade transition, in frames.
Push a new track onto the top of the music stack. The previous track can be resumed by
calling pop
.
SphereFS path of the music file to play.
Duration of the optional crossfade transition, in frames.
Reset the music manager to normal operation after the game has called override
.
Duration of the optional crossfade, in frames.
Generated using TypeDoc
Provides convenient functions for managing background music.