Skip to content

Commit

Permalink
util: play: not stop of sound with firefox and continous instruments
Browse files Browse the repository at this point in the history
Reported by Hudson Lacerda and Gerhard Schacherl.
  • Loading branch information
moinejf committed Mar 10, 2018
1 parent 0f39983 commit 0fc096d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/toaudio5.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ function Audio5(i_conf) {
o.loopEnd = sdur - Math.random() * .2
}
st = t + stime; // absolute start time
o.start(st, 0, d)
// o.start(st, 0, d) // (does not work in firefox when loop)
o.start(st);
o.stop(st + d)
} else {
d = e[4] / speed // (rest)
}
Expand Down

0 comments on commit 0fc096d

Please sign in to comment.