Name
SeekMusic -- seek to a certain position in a music object (V2.0)
Synopsis
SeekMusic(id, pos)
Library
sound

Function
You can use this function to seek to the specified position in the music specified by id. The music object does not have to be playing. If the music is playing and you call SeekMusic(), it will immediately skip to the specified position. The position is specified in milliseconds. Thus, if you want to skip to the position 3:24, you would have to pass the value 204000 because 3 * 60 * 1000 + 24 * 1000 = 204000.

Note that seeking Protracker modules to a certain position will only work if you set the TimedProtracker tag to True in OpenMusic() or in @MUSIC.

Inputs
id
identifier of the music object to use
pos
new position for the music

Show TOC