Calling getCurrentTime directly when setting seek as paused time since we don't want to self-assign it

This commit is contained in:
Pavle Goloskokovic 2017-12-05 20:20:33 +01:00
parent 4e0c274ca4
commit b3f5b03e6f

View file

@ -83,7 +83,7 @@ var WebAudioSound = new Class({
}
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
this.stopAndRemoveBufferSource();
this.currentConfig.seek = this.seek; // Equivalent to setting paused time
this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time
return true;
},
resume: function () {