diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library_openal.js | 8 |
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; }, |