aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2013-03-20 10:47:47 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2013-03-20 10:47:47 -0400
commit8ef8c03da570e9a53ecc96d359956101f1e82352 (patch)
tree9999f47fb0ae1535c2ea0afc05e14ce5e6d9ef13 /src/library_openal.js
parent7eda11db7c57aa4d231e468f87ded2d703034225 (diff)
Fix a bunch of makeSetValue calls in the OpenAL backend
Diffstat (limited to 'src/library_openal.js')
-rw-r--r--src/library_openal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index 3d3c11f2..9897f765 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -114,7 +114,7 @@ var LibraryOpenAL = {
playTime: -1,
pausedTime: 0
});
- {{{ makeSetValue('sources', 'i', 'AL.currentContext.src.length', 'i32') }}};
+ {{{ makeSetValue('sources', 'i*4', 'AL.currentContext.src.length', 'i32') }}};
}
},
@@ -271,7 +271,7 @@ var LibraryOpenAL = {
var buffer = AL.currentContext.src[source - 1].buffer;
for (var j = 0; j < AL.currentContext.buf.length; ++j) {
if (buffer == AL.currentContext.buf[j].buf) {
- {{{ makeSetValue('buffers', 'i', 'j+1', 'i32') }}};
+ {{{ makeSetValue('buffers', 'i*4', 'j+1', 'i32') }}};
AL.currentContext.src[source - 1].buffer = null;
break;
}
@@ -309,7 +309,7 @@ var LibraryOpenAL = {
}
for (var i = 0; i < count; ++i) {
AL.currentContext.buf.push({buf: null});
- {{{ makeSetValue('buffers', 'i', 'AL.currentContext.buf.length', 'i32') }}};
+ {{{ makeSetValue('buffers', 'i*4', 'AL.currentContext.buf.length', 'i32') }}};
}
},