public boolean setPosition ( float position ) { if ( playing ) { requiredPosition = - 1 ; positioning = true ; playing = false ; boolean result = sound . setPosition ( position ) ; playing = true ; positioning = false ; return result ; } else { requiredPosition = position ; return false ; } }
Seeks to a position in the music . For streaming music seeking before the current position causes the stream to be reloaded .