aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-14 16:43:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-14 16:43:11 -0700
commit471db3798b7cd6b3338af951138ca202d643aed8 (patch)
tree06f7f5c0d1a8f4463f8e63b094e3caf179a2c4fb
parent927a4b3399574f1f0254e611efdd216f1784478a (diff)
parentca86f56dee399aaf505767a6036bc99fe3764a6e (diff)
Merge pull request #1515 from inolen/sdl_audiodrivername
added SDL_AudioDriverName
-rw-r--r--src/library_sdl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 92cfc7e5..332bf5ae 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -755,6 +755,11 @@ var LibrarySDL = {
return depth; // all modes are ok.
},
+ SDL_AudioDriverName__deps: ['SDL_VideoDriverName'],
+ SDL_AudioDriverName: function(buf, max_size) {
+ return _SDL_VideoDriverName(buf, max_size);
+ },
+
SDL_VideoDriverName: function(buf, max_size) {
if (SDL.startTime === null) {
return 0; //return NULL