aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2013-03-20 14:56:40 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 12:07:37 -0700
commita3c3c9622d19971ac89d57c6f335675a7163ae18 (patch)
treefd6dec5f38decdc2379b50784001b77eede2829b
parentfc3612bc88f0b62e0daf9d876d8d42aeb761a2a7 (diff)
Remove two other workarounds
-rw-r--r--src/library_openal.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index a0320c19..aac6e704 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -398,8 +398,7 @@ var LibraryOpenAL = {
src.buffer = AL.currentContext.src[source - 1].buffer;
src.connect(AL.currentContext.src[source - 1].gain);
src.start(0, offset);
- // Work around Firefox bug 851338
- AL.currentContext.src[source - 1].playTime = AL.currentContext.ctx.currentTime || 0;
+ AL.currentContext.src[source - 1].playTime = AL.currentContext.ctx.currentTime;
AL.currentContext.src[source - 1].paused = false;
AL.currentContext.src[source - 1]['src'] = src;
},
@@ -439,8 +438,7 @@ var LibraryOpenAL = {
if ("src" in AL.currentContext.src[source - 1] &&
!AL.currentContext.src[source - 1].paused) {
AL.currentContext.src[source - 1].paused = true;
- // Work around Firefox bug 851338
- AL.currentContext.src[source - 1].pausedTime = AL.currentContext.ctx.currentTime || 0;
+ AL.currentContext.src[source - 1].pausedTime = AL.currentContext.ctx.currentTime;
AL.currentContext.src[source - 1]["src"].stop(0);
delete AL.currentContext.src[source - 1].src;
}