summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-07 18:20:48 +0200
committerAki <nthirtyone@gmail.com>2018-04-07 18:20:48 +0200
commita12f063e7f759a4727c6b654140a8acaaa8746f8 (patch)
tree4b69ea2124cc02f4a31085038a286aa3de29b35e
parent8d6376bf6044d4a82035f3a7289814c2cd7751cb (diff)
downloadroflnauts-a12f063e7f759a4727c6b654140a8acaaa8746f8.zip
roflnauts-a12f063e7f759a4727c6b654140a8acaaa8746f8.tar.gz
roflnauts-a12f063e7f759a4727c6b654140a8acaaa8746f8.tar.bz2
Added missing argument to new newSource function
-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