diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-26 06:15:37 -0700 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-26 06:15:37 -0700 |
commit | e3d12277cdbb3c47ddeacf1fa005f2964debefbb (patch) | |
tree | 776a0fdfcd80027b1a328c3e1ec8ec3594cec9a1 /src/library_openal.js | |
parent | 926a1f21a06442dbcabfce97fef2257641b5c13c (diff) |
Adjust the distance model and rolloff factor for OpenAL
Diffstat (limited to 'src/library_openal.js')
-rw-r--r-- | src/library_openal.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index df1d15db..0b6e9b2f 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -103,6 +103,8 @@ var LibraryOpenAL = { var gain = AL.currentContext.ctx.createGain(); var panner = AL.currentContext.ctx.createPanner(); panner.panningModel = "equalpower"; + panner.distanceModel = "linear"; + panner.rolloffFactor = 0.3; gain.connect(panner); panner.connect(AL.currentContext.ctx.destination); AL.currentContext.src.push({ |