aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-11 11:53:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-11 11:56:35 -0800
commit64ce336884b7b394afc5b286d3c0e6ecef2df23b (patch)
treebd962fb3528782e08720b77c7189b82b6d6677b2
parent8a5ba3478c7ced2916a768a9071ef11815fb2773 (diff)
parent01732d5b70b5889b8c33e74430fb078495751bf0 (diff)
Merge branch 'incoming' of github.com:mgerhardy/emscripten into incoming
Conflicts: src/library_sdl.js
-rw-r--r--src/library_sdl.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 0e82203c..ca2045d4 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1224,6 +1224,11 @@ var LibrarySDL = {
return SDL.errorMessage;
},
+ SDL_SetError: function() {},
+
+ SDL_Malloc: 'malloc',
+ SDL_Free: 'free',
+
SDL_CreateRGBSurface: function(flags, width, height, depth, rmask, gmask, bmask, amask) {
return SDL.makeSurface(width, height, flags, false, 'CreateRGBSurface', rmask, gmask, bmask, amask);
},
@@ -2681,6 +2686,14 @@ var LibrarySDL = {
}
},
+ SDL_GetNumAudioDrivers: function() { return 1 },
+ SDL_GetCurrentAudioDriver: function() {
+ return allocate(intArrayFromString('Emscripten Audio'), 'i8', ALLOC_NORMAL);
+ },
+
+ SDL_GetAudioDriver__deps: ['SDL_GetCurrentAudioDriver'],
+ SDL_GetAudioDriver: function(index) { return _SDL_GetCurrentAudioDriver() },
+
SDL_EnableUNICODE: function(on) {
var ret = SDL.unicode || 0;
SDL.unicode = on;
@@ -2710,6 +2723,9 @@ var LibrarySDL = {
SDL_WM_IconifyWindow: function() { throw 'SDL_WM_IconifyWindow TODO' },
Mix_SetPostMix: function() { Runtime.warnOnce('Mix_SetPostMix: TODO') },
+
+ Mix_VolumeChunk: function(chunk, volume) { throw 'Mix_VolumeChunk: TODO' },
+ Mix_SetPosition: function(channel, angle, distance) { throw 'Mix_SetPosition: TODO' },
Mix_QuerySpec: function() { throw 'Mix_QuerySpec: TODO' },
Mix_FadeInChannelTimed: function() { throw 'Mix_FadeInChannelTimed' },
Mix_FadeOutChannel: function() { throw 'Mix_FadeOutChannel' },