This commit is contained in:
Jade (Rose) Rowland 2026-01-10 01:22:50 -05:00
parent 6a47139e0d
commit 3b2e9fa0b4

View file

@ -547,6 +547,7 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
} else if (getSound(s)) { } else if (getSound(s)) {
const { onTrigger } = getSound(s); const { onTrigger } = getSound(s);
const onEnded = () => { const onEnded = () => {
chain.releaseNodes();
audioNodes.forEach((n) => (isPoolable(n) ? releaseNodeToPool(n) : n?.disconnect())); audioNodes.forEach((n) => (isPoolable(n) ? releaseNodeToPool(n) : n?.disconnect()));
activeSoundSources.delete(chainID); activeSoundSources.delete(chainID);
}; };