diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-12 15:43:47 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-12 15:43:47 -0700 |
commit | a5e2ef637afb542286a75f2009abba4476adce6b (patch) | |
tree | 6adb792152a2a21ba61c18c0b78ebfab0bb1de73 /src/library_sdl.js | |
parent | 072aaa9ee5a48f005dea6467f9f5a6a89f26f65b (diff) |
make sure SDL.channelMinimumNumber is initialized; fixes SDL audio tests
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 3dbb9a33..9fc979d2 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -35,6 +35,7 @@ var LibrarySDL = { mixerFormat: 0x8010, // AUDIO_S16LSB mixerNumChannels: 2, mixerChunkSize: 1024, + channelMinimumNumber: 0, GL: false, // Set to true if we call SDL_SetVideoMode with SDL_OPENGL, and if so, we do not create 2D canvases&contexts for blitting // Note that images loaded before SDL_SetVideoMode will not get this optimization @@ -1235,7 +1236,6 @@ var LibrarySDL = { Mix_Init: function(flags) { if (!flags) return 0; - SDL.channelMinimumNumber = 0; return 8; /* MIX_INIT_OGG */ }, Mix_Quit: function(){}, |