You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'll be great if there's an API to get precise playing position from audio. Currently I'm using timers, but I'm afraid they are not precise enough regarding the music being played.
The text was updated successfully, but these errors were encountered:
local handle = audio.loadSound(filename)
local ch, src = audio.play( handle, { channel=1, loops=0 } )
local function onFrame(event)
local position = al.GetSource(src, al.SEC_OFFSET)
print(position)
end
Runtime:addEventListener( "enterFrame", onFrame )
p.s: Use the forums to find suggestions or solutions. (This is a space for reporting "bugs".)
Hi,
It'll be great if there's an API to get precise playing position from audio. Currently I'm using timers, but I'm afraid they are not precise enough regarding the music being played.
The text was updated successfully, but these errors were encountered: