Skip to content

Commit 398b337

Browse files
Resetting previousTime property when stopping sound or hijacking audio from another sound
1 parent de9e5a0 commit 398b337

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ var HTML5AudioSound = new Class({
153153
selectedSound.reset();
154154
selectedSound.audio = null;
155155
selectedSound.startTime = 0;
156+
selectedSound.previousTime = 0;
156157
}
157158
return true;
158159
},
@@ -161,6 +162,7 @@ var HTML5AudioSound = new Class({
161162
this.audio.dataset.used = 'false';
162163
this.audio = null;
163164
this.startTime = 0;
165+
this.previousTime = 0;
164166
},
165167
reset: function () {
166168
BaseSound.prototype.stop.call(this);

0 commit comments

Comments
 (0)