Music.position

Modifies the position where currently playing.

class Music
static @property
bool
position
(
double value
)

Parameters

value
Type: double

Set the position of the currently playing music. The position takes different meanings for different music sources. It only works on the music sources listed below. Will automatically rewind before setting. <b>MOD</b> The double is cast to Uint16 and used for a pattern number in the module. Passing zero is similar to rewinding the song. <b>OGG/MP3</b> Jumps to position seconds from the beginning of the song.

Return Value

Type: bool

true on success, or false if the codec doesn't support this function

Meta