Method: Gosu::Song#stop

Defined in:
lib/gosu_android/audio/audio.rb

#stopObject

Stops playback of this song if it is currently played or paused. Afterwards, current_song will return 0.



182
183
184
185
186
187
188
# File 'lib/gosu_android/audio/audio.rb', line 182

def stop
  if @player_ready
    @@media_player.pause
    @@media_player.stop
  end
  @@current_song = 0
end