Skip to content

Commit 4298b2c

Browse files
committed
Merge pull request phaserjs#2368 from Weedshaker/patch-2
AudioBufferSourceNode - same issue as on play:
2 parents 63b3b3e + 1b1c4ef commit 4298b2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/Sound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ Phaser.Sound.prototype = {
770770
{
771771
if (this.usingWebAudio)
772772
{
773-
var p = this.position + (this.pausedPosition / 1000);
773+
var p = Math.max(0, this.position + (this.pausedPosition / 1000));
774774

775775
this._sound = this.context.createBufferSource();
776776
this._sound.buffer = this._buffer;

0 commit comments

Comments
 (0)