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 #540
This commit is contained in:
parent
fbab69696d
commit
0f7089c852
1 changed files with 3 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue