Difference between revisions of "love.audio.play"
m (Removed duplicated See Also) |
(Calling this function does return a boolean value.) |
||
Line 9: | Line 9: | ||
{{param|Source|source|The Source to play.}} | {{param|Source|source|The Source to play.}} | ||
=== Returns === | === Returns === | ||
− | + | {{param|boolean|success|Whether the Source was able to successfully start playing.}} | |
== Function == | == Function == | ||
Line 21: | Line 21: | ||
{{param|table|sources|Table containing a list of Sources to play.}} | {{param|table|sources|Table containing a list of Sources to play.}} | ||
=== Returns === | === Returns === | ||
− | + | {{param|boolean|success|Whether the Sources were able to successfully start playing.}} | |
== Function == | == Function == | ||
{{newin|[[11.0]]|110|type=variant}} | {{newin|[[11.0]]|110|type=variant}} | ||
Line 34: | Line 34: | ||
{{param|Source|...|Additional Sources to play.}} | {{param|Source|...|Additional Sources to play.}} | ||
=== Returns === | === Returns === | ||
− | + | {{param|boolean|success|Whether the Sources were able to successfully start playing.}} | |
== See Also == | == See Also == | ||
* [[parent::love.audio]] | * [[parent::love.audio]] |
Revision as of 14:42, 13 February 2022
Plays the specified Source.
Contents
Function
Synopsis
love.audio.play( source )
Arguments
Source source
- The Source to play.
Returns
boolean success
- Whether the Source was able to successfully start playing.
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
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 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
boolean success
- Whether the Sources were able to successfully start playing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info