Difference between revisions of "love.audio.play"
m |
m |
||
Line 2: | Line 2: | ||
== Function == | == Function == | ||
− | {{ | + | {{newin|[[11.0]]|110|type=variant}} |
− | + | Starts playing one or multiple Sources simultaneously. | |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | love.audio.play( source ) | + | success = love.audio.play( source, ... ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|Source|source|The Source to play.}} | + | {{param|Source|source|The first Source to play.}} |
+ | {{param|Source|...|Additional 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}} |
− | + | Starts playing a list of Sources simultaneously. | |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | success = love.audio.play( | + | success = love.audio.play( sources ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{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.}} | {{param|boolean|success|Whether the Sources were able to successfully start playing.}} | ||
== Function == | == Function == | ||
− | {{ | + | {{oldin|[[0.9.1]]|091|type=variant}} |
− | + | Plays the specified Source. | |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | love.audio.play( source ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|Source|source|The | + | {{param|Source|source|The Source to play.}} |
− | |||
=== Returns === | === Returns === | ||
− | + | Nothing. | |
== Function == | == Function == | ||
− | {{ | + | {{newinoldin|[[0.9.1]]|091|[[11.0]]|110|type=variant}} |
− | + | Plays the specified Source. | |
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | success = love.audio.play( | + | success = love.audio.play( source ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{param|Source|source|The Source to play.}} |
=== Returns === | === Returns === | ||
{{param|boolean|success|Whether the Sources were able to successfully start playing.}} | {{param|boolean|success|Whether the Sources were able to successfully start playing.}} |
Latest revision as of 20:03, 7 April 2024
Plays specific Sources.
Contents
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
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.
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.
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