Difference between revisions of "Source:seek"

(Created page with "{{newin|0.8.0}} Sets the currently playing position of the Source. == Function == === Synopsis === <source lang="lua"> Source:seek( offset, unit ) </source> === Arguments ===...")
 
m
Line 8: Line 8:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|number|offset|The new position for the Source to play from.}}
 
{{param|number|offset|The new position for the Source to play from.}}
{{param|TimeUnit ("seconds")|unit|The unit of the offset value.}}
+
{{param|TimeUnit|unit ("seconds")|The unit of the offset value.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 02:05, 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 new position for the Source to play from.
TimeUnit unit ("seconds")
The unit of the offset value.

Returns

Nothing.

See Also

Other Languages