Fix song previews

This commit is contained in:
LoveEevee
2018-09-11 20:24:40 +03:00
parent 47f346eadb
commit 1c92f3b344
2 changed files with 7 additions and 5 deletions

View File

@@ -124,7 +124,9 @@ class Sound{
playLoop(time, absolute, seek1, seek2, until){
time = this.convertTime(time, absolute)
seek1 = seek1 || 0
seek2 = seek2 || 0
if(typeof seek2 == "undefined"){
seek2 = seek1
}
until = until || this.duration
this.loop = {
started: time + until - seek1,