Source:setLooping
Sets whether the Source should loop.
Function
Synopsis
1 | Source:setLooping( loop ) |
Arguments
boolean loop
- True if the source should loop, false otherwise.
Returns
Nothing.
Examples
1 2 3 4 5 6 7 | function love.load() music = love.audio.newSource("music_loop.wav") music:setLooping(true) music:play() -- Music will now play forever, until stopped or paused. end |
Please login to continue.