From 4c649e4fad8cd3329f082579f80e2086c698ea51 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Mon, 20 May 2013 17:27:36 -0700 Subject: According to http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.pdf, 0 is the only value for the loop argument that does not cause looping on Mix_PlayMusic. Update Emscripten's implementation to respect this. --- src/library_sdl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library_sdl.js b/src/library_sdl.js index 75544765..24883295 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1450,7 +1450,7 @@ var LibrarySDL = { loops = Math.max(loops, 1); var audio = SDL.audios[id].audio; if (!audio) return 0; - audio.loop = loops != 1; // TODO: handle N loops for finite N + audio.loop = loops != 0; // TODO: handle N loops for finite N if (SDL.audios[id].buffer) { audio["mozWriteAudio"](SDL.audios[id].buffer); } else { -- cgit v1.2.3-18-g5258