Difference between revisions of "Source:tell"

(Created page with "{{newin|0.8.0}} Gets the currently playing position of the Source. == Function == === Synopsis === <source lang="lua"> pos = Source:tell( unit ) </source> === Arguments === {...")
 
m
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
pos = Source:tell( unit )
+
position = Source:tell( unit )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|TimeUnit|unit ("seconds")|The type of unit for the return value.}}
 
{{param|TimeUnit|unit ("seconds")|The type of unit for the return value.}}
 
=== Returns ===
 
=== Returns ===
The currently playing position of the [[Source]].
+
{{param|number|position|The currently playing position of the [[Source]].}}
 
== See Also ==
 
== See Also ==
 
* [[Source:seek]]
 
* [[Source:seek]]

Revision as of 02:00, 20 March 2011

Available since LÖVE 0.8.0
It is not supported in earlier versions.

Gets the currently playing position of the Source.

Function

Synopsis

position = Source:tell( unit )

Arguments

TimeUnit unit ("seconds")
The type of unit for the return value.

Returns

number position
The currently playing position of the Source.

See Also

Other Languages