[perf] fix connect-leak added by #1742 when noise() is not used

This commit is contained in:
jeromew
2025-11-20 17:36:00 +00:00
parent 8f6718b9e8
commit 0435711051
+1
View File
@@ -493,6 +493,7 @@ export function getOscillator(s, t, value, onended) {
}
o.onended = () => {
o.disconnect();
noiseMix?.node.disconnect();
onended();
};