Ignoring pause calls on delayed playing sound if delay has not yet elapsed

This commit is contained in:
Pavle Goloskokovic 2017-12-13 22:43:42 +01:00
parent 1993aabbf4
commit a17ffeb5b9

View file

@ -85,6 +85,9 @@ var WebAudioSound = new Class({
return this;
},
pause: function () {
if (this.manager.context.currentTime < this.startTime) {
return false;
}
if (!BaseSound.prototype.pause.call(this)) {
return false;
}