Gosu::Song
Songs are less flexible than samples in that only one can be played at a time, with no panning or speed control.
See Gosu::Sample
Constructors
Class methods
current_song
Returns the song currently being played (even if it's paused), or nil if no song is playing.
Instance methods
play(looping : Bool = false)
Starts or resumes playback of the song.
If another song is currently playing, it will be stopped and this song will be set as the current song.
If looping is false, the current song will be set to nil when this song finishes.
looping whether the song should play in a loop.