aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
authorÉloi Rivard <azmeuk@gmail.com>2013-04-02 11:42:23 +0200
committerÉloi Rivard <azmeuk@gmail.com>2013-04-05 10:25:27 +0200
commit727c68db5fcd62fa797ef8cf72e57b6b7746dc9d (patch)
treedd75da50ef42e78f638da07800d5dc5cfb48ed07 /src/library_openal.js
parentcfdcb60c150ca586ad010e634eccc0f7336707e9 (diff)
* Spaces and indentation.
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;
},