Difference between revisions of "Source:seek"

m
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|offset|The new position for the Source to play from.}}
+
{{param|number|offset|The amount of units to seek.}}
 
{{param|TimeUnit|unit ("seconds")|The unit of the offset value.}}
 
{{param|TimeUnit|unit ("seconds")|The unit of the offset value.}}
 
=== Returns ===
 
=== Returns ===

Revision as of 02:19, 20 March 2011

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

Sets the currently playing position of the Source.

Function

Synopsis

Source:seek( offset, unit )

Arguments

number offset
The amount of units to seek.
TimeUnit unit ("seconds")
The unit of the offset value.

Returns

Nothing.

See Also

Other Languages