Sound.cursor read/write property
Get or set the sound cursor position in seconds, a value of 0.0
means the start of the sound.
This property default value is set to 0.0
Example
local audio = require "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