aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-29 14:11:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-29 14:11:38 -0800
commit21d81d9b21832eb15f9a367dc678a4873efb96ee (patch)
treead453a7d083aad590011ca5f315d8e6b70056544
parent3f261d13687a0a93adb262f4395b4b57e3d61335 (diff)
fix Mix_PlayChannel error return codes; fixes #805
-rw-r--r--src/library_sdl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 86144bf7..cfab6410 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1260,9 +1260,9 @@ var LibrarySDL = {
// Get the audio element associated with the ID
var info = SDL.audios[id];
- if (!info) return 0;
+ if (!info) return -1;
var audio = info.audio;
- if (!audio) return 0;
+ if (!audio) return -1;
// If the user asks us to allocate a channel automatically, get the first
// free one.