Skip to content

Commit c3107ca

Browse files
Setting paused time (seek) before calling stopAndRemoveBufferSource since getCurrentTime depends on startTime value and it gets reset in stopAndRemoveBufferSource method
1 parent bf3a016 commit c3107ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ var WebAudioSound = new Class({
8282
return false;
8383
}
8484
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
85-
this.stopAndRemoveBufferSource();
8685
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
86+
this.stopAndRemoveBufferSource();
8787
return true;
8888
},
8989
resume: function () {

0 commit comments

Comments
 (0)