aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
AgeCommit message (Collapse)Author
2013-12-27Fix missing SDL_LockSurface referenceRichard Quirk
Prior to this change, when blitting from the screen to a memory buffer the code could throw a "ReferenceError: _SDL_LockSurface is not defined" if SDL_LockSurface was not used elsewhere in the C code.
2013-12-14simplifies with aliasLu Wang
2013-12-03[SDL Audio] Refactoring Mix_LoadWAV_RW to use new FS API.John Vilk
The old API was causing issues with certain file systems, as the `read` property required the execute bit AND the read bit to be set before it would return `true`. As a side benefit, the new code is simpler and cleaner.
2013-11-26naive implement of SDL_LowerBlitLu Wang
2013-11-19[SDL] SDL_JoystickEventState should default to SDL_ENABLE, not SDL_DISABLE.John Vilk
2013-11-16Don't throw an exception on SDL_ThreadID()DopefishJustin
2013-11-15Merge pull request #1806 from juj/sdl_audio_queueingjuj
Sdl audio queueing
2013-11-16Add a configuration option Module.SDL_numSimultaneouslyQueuedBuffers to ↵Jukka Jylänki
allow user code to configure how many SDL audio buffers to keep simultaneously queued up for the audio backend. More buffers means less change of starving (and cracking audio), but increases latency. Fewer buffers lower the latency at the risk of playback glitches. Make minimum audio buffer size 128, which should be way below anything reasonable already. Clean up commented out code.
2013-11-10Support SDL audio sample size of 512 samples. Make the SDL audio buffer ↵Jukka Jylänki
queueing logic more resilient for jitter, and factor out a common parameter 'SDL.audio.numSimultaneouslyQueuedBuffers' that can be used to tune for a good quality<->latency balance.
2013-11-10[SDL] Joystick API implementation using HTML5 Gamepad APIJohn Vilk
Works in browsers that implement the working draft of the standard (current Chrome / Firefox stable): http://www.w3.org/TR/2012/WD-gamepad-20120529/#gamepad-interface ...and browsers that implement the editor's draft (current Firefox Nightly): https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#idl-def-Gamepad Contains unit tests for both event types.
2013-11-06Merge pull request #1748 from caiiiycuk/fix_sdl_colorsAlon Zakai
Fix SDL_SetColors && SDL_envets
2013-11-04Give names to most manually assigned functions in the .js files, in form ↵Jukka Jylänki
"var x = function()" -> "function x()" so that error stack traces and profiling stack traces are more informative and do not contain anonymous functions.
2013-10-30add some more sdl scancodesAlon Zakai
2013-10-31Fix handling of backspace SDL scancode.Bruce Mitchener
Fixes #1749.
2013-10-30Fix SDL_SetColors && SDL_envetsAleksander Guryanov
2013-10-24map depth and stencil buffers activation from SDL to WebGLAntoine Lambert
2013-10-23Implement SDL_SetVideoMode(0,0, ...) to create the canvas in whatever size ↵Jukka Jylänki
the <canvas> was in, and not try to resize the canvas to 0x0 pixels. Derive a new test for that from sdl_ogl.c. Fixes #1059.
2013-10-16Merge branch 'antialiasing' of github.com:wsmind/emscripten into incomingAlon Zakai
Conflicts: AUTHORS
2013-10-14Minor fixes and improvementsRemi Papillie
2013-10-14Merge branch 'fix-rotozoom' of github.com:fhd/emscripten into incomingAlon Zakai
2013-10-13Implemented MSAA for SDL.Remi Papillie
2013-10-13Implemented SDL_GL_SetAttribute and SDL_GL_GetAttribute.Remi Papillie
2013-10-03Make SDL_rotozoomSurface rotate into the correct directionFelix H. Dahlke
2013-10-01fix C_STRUCT usage in sdlAlon Zakai
2013-09-30Merge branch 'incoming' of github.com:ngld/emscripten into incoming1.6.4Alon Zakai
Conflicts: AUTHORS src/library_sdl.js tools/shared.py
2013-09-25Replace references to QUANTUM_SIZE with C_STRUCTS equivalents.ngld
2013-09-24Fix entire surface alpha blending with SDL_SetAlphaRichard Quirk
2013-09-24Hide logging in Web Audio intended mostly for debugging.Jukka Jylänki
2013-09-24Fix bug where resuming SDL audio multiple times could cause multiple audio ↵Jukka Jylänki
event loops to be accumulated. Add a mechanism for avoiding buffer starving a bit better with Web Audio.
2013-09-24Document Mozilla Audio Data API is used as a workaround.Jukka Jylänki
2013-09-24Adjust SDL Web Audio API backend to make it work on Firefox nightly. Note ↵Jukka Jylänki
that this path is still disabled for Firefox, since Mozilla Audio Data API gives better sound quality.
2013-09-24Explicitly disconnect generated audio buffers with Web Audio API to ↵Jukka Jylänki
guarantee no resources will be leaked. (not sure if this is necessary, but it uncovered a timing bug, and doesn't hurt to be safe)
2013-09-24Fix audio callback overflow problems by avoiding using ↵Jukka Jylänki
Browser.safeSetTimeout, and instead calling safeSetInterval to control the timing drift explicitly.
2013-09-24Improve the Web Audio callback buffer scheduling logic to stay ahead of ↵Jukka Jylänki
buffer underflow by at least more than one sample block.
2013-09-24Fix reporting of silence parameter in SDL audio api.Jukka Jylänki
2013-09-24Fix closure issues with Web Audio support in SDL.Jukka Jylänki
2013-09-24Improve SDL_OpenAudio support to work with the newest Web Audio API spec, ↵Jukka Jylänki
add better support for different SDL audio formats and sample rates. Add browser test for SDL audio beep sample.
2013-09-24Switched to single quotes for consistency.ILOVEPIE
Signed-off-by: ILOVEPIE <thehairyrock@gmail.com>
2013-09-24Fixed some stuff I forgot to change.ILOVEPIE
Signed-off-by: ILOVEPIE <thehairyrock@gmail.com>
2013-09-24Rewritten with audioBuffersILOVEPIE
Added myself to AUTHORS Signed-off-by: ILOVEPIE <thehairyrock@gmail.com>
2013-09-24Made the WebAudioAPI support slightly more efficient by removing some ↵ILOVEPIE
unnecessary channels. Signed-off-by: ILOVEPIE <thehairyrock@gmail.com>
2013-09-24Added WebAudioAPI output to mixer codeILOVEPIE
2013-09-17Updated library_sdl.jsngld
2013-09-13tolerate SDL_Delay in workersAlon Zakai
2013-09-11listen to blur on the window, not the document, so chrome worksAlon Zakai
2013-09-10remove no longer necessary preventDefaultAlon Zakai
2013-09-10fix preventDefault being called after event has been replacedAlon Zakai
2013-09-07when Module.screenIsReadOnly is set, do not constantly read the SDL screen ↵Alon Zakai
pixels
2013-09-07some sdl additionsAlon Zakai
2013-09-01misc in.h and SDL joystick stubsAnthony Pesch