aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2013-03-13 18:17:47 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-03-15 11:53:15 -0700
commit8d03c4d69b31a62114018e5c5ddf96ee1746dbb8 (patch)
treee941c5cf18c67c1a1d918849c9780b95c9f7ffbf /src/library_openal.js
parentee0b6c257c690c8973164a92e58abb388431dd50 (diff)
Access destination off of AudioContext
Diffstat (limited to 'src/library_openal.js')
-rw-r--r--src/library_openal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index 60714091..a1ce6f82 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -87,7 +87,7 @@ var LibraryOpenAL = {
var panner = AL.currentContext.ctx.createPanner();
src.connect(gain);
gain.connect(panner);
- panner.connect(AL.currentContext.destination);
+ panner.connect(AL.currentContext.ctx.destination);
AL.currentContext.src.push({src: src, gain: gain, panner: panner});
{{{ makeSetValue('sources', 'i', 'AL.currentContext.src.length', 'i32') }}};
}