Skip to content

Commit

Permalink
Make sure sound stop time isn't undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed Jul 12, 2018
1 parent 88cdbcd commit 174a4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@
sound._node.bufferSource.loop = sound._loop;
if (sound._loop) {
sound._node.bufferSource.loopStart = sound._start || 0;
sound._node.bufferSource.loopEnd = sound._stop;
sound._node.bufferSource.loopEnd = sound._stop || 0;
}
sound._node.bufferSource.playbackRate.setValueAtTime(sound._rate, Howler.ctx.currentTime);

Expand Down

0 comments on commit 174a4ac

Please sign in to comment.