[perf] fix connect-leak added by #1742 when noise() is not used
This commit is contained in:
parent
8f6718b9e8
commit
0435711051
1 changed files with 1 additions and 0 deletions
|
|
@ -493,6 +493,7 @@ export function getOscillator(s, t, value, onended) {
|
||||||
}
|
}
|
||||||
|
|
||||||
o.onended = () => {
|
o.onended = () => {
|
||||||
|
o.disconnect();
|
||||||
noiseMix?.node.disconnect();
|
noiseMix?.node.disconnect();
|
||||||
onended();
|
onended();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue