# File lib/rubygame/music.rb, line 464 def jump_to( time ) if current? and not stopped? was_paused = paused? if( time < 0 ) raise Rubygame::SDLError, "cannot jump to negative time (got #{time})" end result = SDL::Mixer.SetMusicPosition( time.to_f ) if( result == -1) raise Rubygame::SDLError, "could not jump music: #{SDL.GetError()}" end SDL::Mixer.PauseMusic() if was_paused end return self end