Difference between revisions of "SoundChannel:getPosition"

From GiderosMobile
Line 13: Line 13:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (number) <translate>The position of the sound in miliseconds.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>The position of the sound in miliseconds.</translate><br/>
 +
 +
{{SoundChannel}}

Revision as of 00:51, 4 December 2019


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.