Merge pull request #827 from fbricker/develop

Avoid howlerjs exception when seeking files that are being played.
This commit is contained in:
Joshua Granick
2016-10-16 11:19:51 -07:00
committed by GitHub

View File

@@ -165,7 +165,9 @@ class HTML5AudioSource {
if (parent.buffer != null) {
//if (playing) buffer.__srcHowl.play (id);
parent.buffer.__srcHowl.seek ((value + parent.offset) / 1000, id);
var pos = (value + parent.offset) / 1000;
if ( pos < 0 ) pos = 0;
parent.buffer.__srcHowl.seek (pos, id);
}