From da58b68fa0716d75b299f9c169f86774a1a16356 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Tue, 11 Mar 2014 16:23:04 -0700 Subject: [PATCH] Fixed a bug with the music player where sometimes it wouldn't loop. --- app/lib/surface/MusicPlayer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/surface/MusicPlayer.coffee b/app/lib/surface/MusicPlayer.coffee index 13cca1a17..57ff7c72e 100644 --- a/app/lib/surface/MusicPlayer.coffee +++ b/app/lib/surface/MusicPlayer.coffee @@ -23,7 +23,7 @@ module.exports = class MusicPlayer extends CocoClass src = e.file if src src = "/file#{src}#{AudioPlayer.ext}" - return @currentMusic.play() if src is @currentMusic?.src + return @currentMusic.play('none', 0, 0, -1, 0.3) if src is @currentMusic?.src media = AudioPlayer.getStatus(src) if not media?.loaded AudioPlayer.preloadSound(src)