Difference between revisions of "love.audio.play"

m (Function: minor phrasing edit)
m
Line 18: Line 18:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.audio.play( source )
+
success = love.audio.play( source )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 30: Line 30:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.audio.play( source, ... )
+
success = love.audio.play( source, ... )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 43: Line 43:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.audio.play( sources )
+
success = love.audio.play( sources )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 16:52, 14 February 2022

Plays specific Sources.

Function

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

Plays the specified Source.

Synopsis

love.audio.play( source )

Arguments

Source source
The Source to play.

Returns

Nothing.

Function

Available since LÖVE 0.9.1 and removed in LÖVE 11.0
This variant is not supported in earlier or later versions.

Plays the specified Source.

Synopsis

success = love.audio.play( source )

Arguments

Source source
The Source to play.

Returns

boolean success
Whether the Sources were able to successfully start playing.

Function

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

Starts playing one or multiple Sources simultaneously.

Synopsis

success = love.audio.play( source, ... )

Arguments

Source source
The first Source to play.
Source ...
Additional Sources to play.

Returns

boolean success
Whether the Sources were able to successfully start playing.

Function

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

Starts playing a list of Sources simultaneously.

Synopsis

success = love.audio.play( sources )

Arguments

table sources
Table containing a list of Sources to play.

Returns

boolean success
Whether the Sources were able to successfully start playing.

See Also


Other Languages