Difference between revisions of "SoundChannel:getPosition"

From GiderosMobile
Line 4: Line 4:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
If the sound is playing, `getPosition` returns the position of the current playback, measured in miliseconds from the start of the sound.<br />
+
If the sound is playing, ''getPosition'' returns the position of the current playback, measured in miliseconds from the start of the sound.<br />
If the sound is not playing (paused or stopped), `getPosition` returns the last point that was played.<br />
+
If the sound is not playing (paused or stopped), ''getPosition'' returns the last point that was played.<br />
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">

Revision as of 09:35, 24 August 2018

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.