mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-14 12:53:59 +00:00
close audio context when disposing
This commit is contained in:
parent
b91b34d792
commit
77e89734c2
1 changed files with 1 additions and 0 deletions
|
@ -536,6 +536,7 @@ export class Context extends BaseContext {
|
||||||
Object.keys(this._constants).map((val) =>
|
Object.keys(this._constants).map((val) =>
|
||||||
this._constants[val].disconnect()
|
this._constants[val].disconnect()
|
||||||
);
|
);
|
||||||
|
this.close();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue