Views
Source:clone
Available since LÖVE 0.9.1 |
This function is not supported in earlier versions. |
Creates an identical copy of the Source in the stopped state.
Static Sources will use significantly less memory and take much less time to be created if Source:clone is used to create them instead of love.audio.newSource, so this method should be preferred when making multiple Sources which play the same sound.
Function
Synopsis
source = Source:clone( )
Arguments
None.
Returns
Source source
- The new identical copy of this Source.
Notes
Cloned Sources inherit all the set-able state of the original Source, but they are initialized stopped.
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