mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-10 05:54:20 +00:00
parent
ed8bb4ddcf
commit
826a51d594
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ export class Player extends Source<PlayerOptions> {
|
|||
this._activeSources.delete(source);
|
||||
if (this._activeSources.size === 0 && !this._synced &&
|
||||
this._state.getValueAtTime(this.now()) === "started") {
|
||||
// remove the 'implicitEnd' event and replace with an explicit end
|
||||
this._state.cancel(this.now());
|
||||
this._state.setStateAtTime("stopped", this.now());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue