Sound:seek(pos) method
Moves the sound cursor position
Parameters
pos
A number
representing the time position on the sound, in seconds.
Return value
This function returns no value.Example
local audio = require "audio"
local console = require "console"
-- Loads and play a music
local sound = audio.Sound("music.mp3")
sound:play()
-- plays the sound 2 sec...
sleep(2000)
-- ...then advance cursor position at 33.1 seconds
sound:seek(33.1)
while sound.playing do
sleep()
end