aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2013-03-20 15:02:26 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 12:07:37 -0700
commit02a8619257f5dc17a21f09084fbfed5c3ba8118f (patch)
treef9388e0f1ab5cd6c75655a70fd1479524bf66854 /src/library_openal.js
parenta3c3c9622d19971ac89d57c6f335675a7163ae18 (diff)
Implement alcGetError
Diffstat (limited to 'src/library_openal.js')
-rw-r--r--src/library_openal.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index aac6e704..b785a89f 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -73,6 +73,12 @@ var LibraryOpenAL = {
}
},
+ alcGetError__deps: ['alGetError'],
+ alcGetError: function(device) {
+ // We have only one audio device, so just return alGetError.
+ return _alGetError();
+ },
+
alDeleteSources: function(count, sources)
{
if (!AL.currentContext) {
@@ -564,10 +570,6 @@ var LibraryOpenAL = {
alcGetProcAddress: function(device, fname) {
return 0;
},
-
- alcGetError: function(device) {
- return 0;
- },
};
autoAddDeps(LibraryOpenAL, '$AL');