summaryrefslogtreecommitdiffhomepage
path: root/not/MusicPlayer.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-09 21:30:11 +0200
committerAki <nthirtyone@gmail.com>2018-04-09 21:30:11 +0200
commitfa4409cedb322bbd41722f22308f399979fc6676 (patch)
treea7cc4725b003c1932ad88f4fce8548d43605bf9b /not/MusicPlayer.lua
parent96f6ebdaf06650a35dcdb6a1fc3f472b3aab6d8a (diff)
parent290d75dceb905217cb67fcb32e95dbeb45e27e3c (diff)
downloadroflnauts-fa4409cedb322bbd41722f22308f399979fc6676.zip
roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.gz
roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.bz2
Love2D version 0.10.2 -> 11.0
Diffstat (limited to 'not/MusicPlayer.lua')
-rw-r--r--not/MusicPlayer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/not/MusicPlayer.lua b/not/MusicPlayer.lua
index 17beda4..900df68 100644
--- a/not/MusicPlayer.lua
+++ b/not/MusicPlayer.lua
@@ -22,7 +22,7 @@ function MusicPlayer:setTrack (trackName)
if self.tracks[trackName] then
self.source = self.tracks[trackName]
else
- local source = love.audio.newSource("assets/music/" .. trackName)
+ local source = love.audio.newSource("assets/music/" .. trackName, "stream")
source:setLooping(true)
source:setVolume(.7)
self.source = source