1 #ifndef HORUSEYE_FRAMEWORK_MUSIC_H_
2 #define HORUSEYE_FRAMEWORK_MUSIC_H_
52 Music(
const std::string& filepath);
56 std::unique_ptr<ugdk::filesystem::File> file_;
58 static void UpdateVolume(
double vol);
59 static void MusicDone();
60 static Music *playing_music_;
void Play()
Plays this music once.
void PlayForever()
Plays this music until told to stop.
void SetVolume(double vol)
Sets the volume. 0.0 is quiet, 1.0 is the full volume.
bool IsPaused() const
Return whether this can be unpaused.
Definition: animation.h:11
double Volume()
Returns this music's current volume, between 0.0 and 1.0.
void Stop()
Stops playing this music.
void Unpause()
Unpauses the music if it's the last played music.
void Pause()
Pauses the music, allowing it to be resumed from the same point.
bool IsPlaying() const
Return whether this music is playing or not.