[perf] in noise, let noiseMix do the disconnect when it exists
This commit is contained in:
parent
132a124644
commit
89da9bbdb0
1 changed files with 1 additions and 1 deletions
|
|
@ -493,7 +493,7 @@ export function getOscillator(s, t, value, onended) {
|
|||
}
|
||||
|
||||
o.onended = () => {
|
||||
o.disconnect();
|
||||
noiseMix || o.disconnect();
|
||||
noiseMix?.node.disconnect();
|
||||
onended();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue