SoundChannel:getPosition

From GiderosMobile
Revision as of 15:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6
Class: SoundChannel

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()

Return values

Returns (number) the position of the sound in miliseconds