aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-20 08:25:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 08:25:04 -0700
commitf07c7fba902aff75334c20c169fecaf2c91ce8f8 (patch)
tree13417099e405a1c97cd966e7fc85eb14de0b1039
parentd94b8c098ae434a3f1187ec9a96d431d52461fd4 (diff)
parent8ef8c03da570e9a53ecc96d359956101f1e82352 (diff)
Merge pull request #982 from ehsan/openal
Fix a bunch of makeSetValue calls in the OpenAL backend
-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') }}};
}
},