diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-22 14:46:33 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-22 15:17:49 -0400 |
commit | 27abf83a1ce6f057ea3051ab2d394fca54137978 (patch) | |
tree | d2ca040243bf948baaf73ad894d1f2ac06ec1827 /src | |
parent | 8146bec6c72601f46edae19b1822d8bf585f4fd3 (diff) |
Set the correct panning model
Diffstat (limited to 'src')
-rw-r--r-- | src/library_openal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index b785a89f..df1d15db 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -57,7 +57,6 @@ var LibraryOpenAL = { } if (ctx) { - ctx.listener.panningModel = "equalpower"; AL.contexts.push({ctx: ctx, err: 0, src: [], buf: []}); return AL.contexts.length; } else { @@ -103,6 +102,7 @@ var LibraryOpenAL = { for (var i = 0; i < count; ++i) { var gain = AL.currentContext.ctx.createGain(); var panner = AL.currentContext.ctx.createPanner(); + panner.panningModel = "equalpower"; gain.connect(panner); panner.connect(AL.currentContext.ctx.destination); AL.currentContext.src.push({ |