Difference between revisions of "love.audio.play"

m (Added link to source:play())
(Updated for 0.11)
Line 1: Line 1:
 
Plays the specified Source.
 
Plays the specified Source.
 +
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 9: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
 +
== Function ==
 +
{{newin|[[0.11.0]]|110|type=variant}}
 +
Starts playing multiple Sources simultaneously.
 +
=== Synopsis ===
 +
<source lang="lua">
 +
love.audio.play( sources )
 +
</source>
 +
=== Arguments ===
 +
{{param|table|sources|Table containing a list of Sources to play.}}
 +
=== Returns ===
 +
Nothing.
 +
== See Also ==
 +
 +
== Function ==
 +
{{newin|[[0.11.0]]|110|type=variant}}
 +
Starts playing multiple Sources simultaneously.
 +
=== Synopsis ===
 +
<source lang="lua">
 +
love.audio.play( source1, source2, ... )
 +
</source>
 +
=== Arguments ===
 +
{{param|Source|source1|The first Source to play.}}
 +
{{param|Source|source2|The second Source to play.}}
 +
{{param|Source|...|Additional Sources to play.}}
 +
=== Returns ===
 +
Nothing.
 +
== See Also ==
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]

Revision as of 13:18, 25 March 2018

Plays the specified Source.

Function

Synopsis

love.audio.play( source )

Arguments

Source source
The Source to play.

Returns

Nothing.

Function

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

Starts playing multiple Sources simultaneously.

Synopsis

love.audio.play( sources )

Arguments

table sources
Table containing a list of Sources to play.

Returns

Nothing.

See Also

Function

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

Starts playing multiple Sources simultaneously.

Synopsis

love.audio.play( source1, source2, ... )

Arguments

Source source1
The first Source to play.
Source source2
The second Source to play.
Source ...
Additional Sources to play.

Returns

Nothing.

See Also

See Also


Other Languages