Difference between revisions of "Source:play"

(Added missing success return value)
 
Line 2: Line 2:
 
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">

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