Skip to content

Commit e173cac

Browse files
Ignoring seek setter calls on delayed playing sound if delay has not yet elapsed
1 parent 7ee1f78 commit e173cac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ Object.defineProperty(WebAudioSound.prototype, 'seek', {
298298
}
299299
},
300300
set: function (value) {
301+
if (this.manager.context.currentTime < this.startTime) {
302+
return;
303+
}
301304
if (this.isPlaying || this.isPaused) {
302305
value = Math.min(Math.max(0, value), this.duration);
303306
this.currentConfig.seek = value;

0 commit comments

Comments
 (0)