SoundChannel:getPosition

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> If the sound is playing, `getPosition` returns the position of the current playback, measured i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


If the sound is playing, `getPosition` returns the position of the current playback, measured in miliseconds from the start of the sound.
If the sound is not playing (paused or stopped), `getPosition` returns the last point that was played.

(number), = SoundChannel:getPosition()

Returns (number) The position of the sound in miliseconds.