mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Setting paused time (seek) before calling stopAndRemoveBufferSource since getCurrentTime depends on startTime value and it gets reset in stopAndRemoveBufferSource method
This commit is contained in:
parent
bf3a0167f9
commit
c3107ca629
1 changed files with 1 additions and 1 deletions
|
@ -82,8 +82,8 @@ var WebAudioSound = new Class({
|
|||
return false;
|
||||
}
|
||||
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
|
||||
this.stopAndRemoveBufferSource();
|
||||
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
|
||||
this.stopAndRemoveBufferSource();
|
||||
return true;
|
||||
},
|
||||
resume: function () {
|
||||
|
|
Loading…
Reference in a new issue