aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_openal.js')
-rw-r--r--src/library_openal.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index 2f657f4f..5e76eee6 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -20,13 +20,15 @@ var LibraryOpenAL = {
}
},
- alcGetContextsDevice: function(context){
- if(context < Al.contexts.length && context >= 0)
+ alcGetContextsDevice: function(context) {
+ if (context < AL.contexts.length && context >= 0) {
+ // Returns the only one audio device
return 1;
+ }
return 0;
},
- alcGetCurrentContext: function(){
+ alcGetCurrentContext: function() {
return AL.currentContext;
},