Method: Gosu::Song#play
- Defined in:
- lib/gosu_android/audio/audio.rb
#play(looping = false) ⇒ Object
Starts or resumes playback of the song. This will stop all other songs and set the current song to this object.
151 152 153 154 155 156 157 158 |
# File 'lib/gosu_android/audio/audio.rb', line 151 def play(looping = false) @@media_player.setLooping(looping) if @player_ready @@media_player.start end @@current_song = @file_name @playing = true end |