Difference between revisions of "love.audio.play"

m (Added link to source:play())
m (Removed duplicated See Also)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Plays the specified Source.
 
Plays the specified Source.
 +
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 7: Line 8:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|Source|source|The Source to play.}}
 
{{param|Source|source|The Source to play.}}
 +
=== Returns ===
 +
Nothing.
 +
 +
== Function ==
 +
{{newin|[[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.
 +
== Function ==
 +
{{newin|[[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 ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 07:20, 22 March 2019

Plays the specified Source.

Function

Synopsis

love.audio.play( source )

Arguments

Source source
The Source to play.

Returns

Nothing.

Function

Available since LÖVE 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.

Function

Available since LÖVE 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


Other Languages