Difference between revisions of "SoundChannel:getPosition"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
If the sound is playing, [[Special:MyLanguage/getPosition|getPosition]] returns the position of the current playback, measured in miliseconds from the start of the sound.<br /> | If the sound is playing, [[Special:MyLanguage/getPosition|getPosition]] returns the position of the current playback, measured in miliseconds from the start of the sound.<br /> | ||
Line 9: | Line 9: | ||
(number) = SoundChannel:getPosition() | (number) = SoundChannel:getPosition() | ||
</source> | </source> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (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/> |
Revision as of 07:29, 24 August 2018
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()
Return values
Returns (number) The position of the sound in miliseconds.