Skip to content

Commit 039ed52

Browse files
Resetting startTime value inside of stopAndRemoveBufferSource method to have more consistent sound state
1 parent 0a5e8de commit 039ed52

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
@@ -100,7 +100,6 @@ var WebAudioSound = new Class({
100100
}
101101
// \/\/\/ isPlaying = false, isPaused = false \/\/\/
102102
this.stopAndRemoveBufferSource();
103-
this.startTime = 0;
104103
return true;
105104
},
106105
/**
@@ -138,6 +137,7 @@ var WebAudioSound = new Class({
138137
this.source.stop();
139138
this.source = null;
140139
}
140+
this.startTime = 0;
141141
},
142142
applyConfig: function () {
143143
this.rateUpdates.length = 0;

0 commit comments

Comments
 (0)