diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-20 14:54:58 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-20 12:07:37 -0700 |
commit | fc3612bc88f0b62e0daf9d876d8d42aeb761a2a7 (patch) | |
tree | 9f1025eb34dd547d232df8f687184d84a56266aa /src/library_openal.js | |
parent | 421e70ecf266d6619415b53c1bc03d4a127a585d (diff) |
Revert "Work around two Firefox bugs"
This reverts commit 0dd0d506f77e981258dad30e916c95daeb4aef13.
Conflicts:
src/library_openal.js
Diffstat (limited to 'src/library_openal.js')
-rw-r--r-- | src/library_openal.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index 719d8cf8..a0320c19 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -97,14 +97,8 @@ var LibraryOpenAL = { for (var i = 0; i < count; ++i) { var gain = AL.currentContext.ctx.createGain(); var panner = AL.currentContext.ctx.createPanner(); - if (typeof(webkitAudioContext) == 'function') { - gain.connect(panner); - panner.connect(AL.currentContext.ctx.destination); - } else { - // Work around a Firefox bug (bug 849916) - gain.connect(AL.currentContext.ctx.destination); - } - gain.gain.value = 1; // work around a Firefox bug (bug 850970) + gain.connect(panner); + panner.connect(AL.currentContext.ctx.destination); AL.currentContext.src.push({ loop: false, buffer: null, |