Difference between revisions of "Source:play"

(Created page with 'Starts playing the Source. == Function == === Synopsis === <source lang="lua"> Source:play() </source> === Arguments === None. === Returns === Nothing. == See Also == * [[parent:…')
 
(Added missing success return value)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{newin|[[0.7.0]]|070|type=function}}
 
Starts playing the Source.
 
Starts playing the Source.
 
== Function ==
 
== Function ==
 +
{{newin|[[0.9.1]]|091|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
success = Source:play()
 +
</source>
 +
=== Arguments ===
 +
None.
 +
=== Returns ===
 +
{{param|boolean|success|Whether the Source was able to successfully start playing.}}
 +
== Function ==
 +
{{oldin|[[0.9.1]]|091|type=variant}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 13: Line 25:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Plays a source.}}
 
{{#set:Description=Plays a source.}}
 +
== Other Languages ==
 +
{{i18n|Source:play}}

Latest revision as of 02:20, 29 November 2014

Available since LÖVE 0.7.0
This function is not supported in earlier versions.

Starts playing the Source.

Function

Available since LÖVE 0.9.1
This variant is not supported in earlier versions.

Synopsis

success = Source:play()

Arguments

None.

Returns

boolean success
Whether the Source was able to successfully start playing.

Function

Removed in LÖVE 0.9.1
This variant is not supported in that and later versions.

Synopsis

Source:play()

Arguments

None.

Returns

Nothing.

See Also

Other Languages