We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3388fd0 commit fb6b989Copy full SHA for fb6b989
1 file changed
src/sound/html5/HTML5AudioSound.js
@@ -126,7 +126,16 @@ var HTML5AudioSound = new Class({
126
BaseSound.prototype.stop.call(this);
127
},
128
update: function (time, delta) {
129
-
+ if (this.isPlaying) {
130
+ // handling delayed playback
131
+ if (this.startTime > 0) {
132
+ if (this.startTime < time) {
133
+ this.audio.currentTime += (time - this.startTime) / 1000;
134
+ this.startTime = 0;
135
+ this.audio.play();
136
+ }
137
138
139
140
destroy: function () {
141
BaseSound.prototype.destroy.call(this);
0 commit comments