Sound.cursor
Get or set the sound cursor position in seconds, a value of 0.0 means the start of the sound.
Example
--! luart-extensions
import audio
local ui = require "ui"
local win = ui.Window("Music player", "fixed", 320, 200)
local file = sys.File("music.mp3")
local label = ui.Label(win, "sound.cursor = 0.0")
label.fontsize = 16
label:center();
local sound = audio.Sound(file)
sound:play()
win:show()
while win.visible do
label.text = "sound.cursor : "..string.format("%.1fs",sound.cursor)
ui.update()
sleep(100)
end