Miscellaneous bug fixes

This commit is contained in:
LoveEevee
2018-12-13 12:18:52 +03:00
parent f726ecdd7b
commit 5f4048315d
16 changed files with 145 additions and 93 deletions

View File

@@ -147,10 +147,13 @@ class Sound{
playLoop(time, absolute, seek1, seek2, until){
time = this.convertTime(time, absolute)
seek1 = seek1 || 0
if(typeof seek2 == "undefined"){
if(typeof seek2 === "undefined"){
seek2 = seek1
}
until = until || this.duration
if(seek1 >= until || seek2 >= until){
return
}
this.loop = {
started: time + until - seek1,
seek: seek2,