diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index 59ff8e6fd..21561fd66 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -277,6 +277,7 @@ Object.defineProperty(WebAudioSound.prototype, 'seek', { } }, set: function (value) { + value = Math.min(Math.max(0, value), this.duration); this.currentConfig.seek = value; } });