2
0
Fork 0
mirror of https://github.com/Tonejs/Tone.js synced 2025-02-15 20:18:24 +00:00

only clamp to the context time when the source is not synced

addresses 
This commit is contained in:
Yotam Mann 2019-09-05 18:24:08 -04:00
parent fbab69696d
commit 0f7089c852

View file

@ -150,7 +150,9 @@ Tone.Source.prototype.start = function(time, offset, duration){
time = Tone.Transport.seconds;
} else {
time = this.toSeconds(time);
time = Math.max(time, this.context.currentTime);
if (!this._synced){
time = Math.max(time, this.context.currentTime);
}
}
//if it's started, stop it and restart it
if (this._state.getValueAtTime(time) === Tone.State.Started){