Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.audio.play( music, loop )
Remember that only one Music can play at any time. (See love.audio).
Usage
love.audio.play( music, loop )
Arguments
musicThe Music object to play.
loopThe number of times to loop. (1 = play once, 0 = forever).
Returns
Nothing
Examples
Example 1: Play some music forever. muzik = love.audio.newMusic("totally_awesome.mp3")
love.audio.play(muzik, 0)