aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_openal.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index 0b6e9b2f..2f657f4f 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -13,11 +13,23 @@ var LibraryOpenAL = {
alcMakeContextCurrent: function(context) {
if (context == 0) {
AL.currentContext = null;
+ return 0;
} else {
AL.currentContext = AL.contexts[context - 1];
+ return 1;
}
},
+ alcGetContextsDevice: function(context){
+ if(context < Al.contexts.length && context >= 0)
+ return 1;
+ return 0;
+ },
+
+ alcGetCurrentContext: function(){
+ return AL.currentContext;
+ },
+
alcDestroyContext: function(context) {
// Stop playback, etc
},