Formatting
This commit is contained in:
parent
1d4f2b81d8
commit
196f70ab6b
1 changed files with 1 additions and 4 deletions
|
|
@ -619,8 +619,5 @@ export const releaseAudioNode = (node) => {
|
||||||
|
|
||||||
// Once the `anchor` node has ended, release all nodes in `toCleanup`
|
// Once the `anchor` node has ended, release all nodes in `toCleanup`
|
||||||
export const cleanupOnEnd = (anchor, toCleanup) => {
|
export const cleanupOnEnd = (anchor, toCleanup) => {
|
||||||
onceEnded(
|
onceEnded(anchor, () => toCleanup.forEach((n) => releaseAudioNode(n)));
|
||||||
anchor,
|
|
||||||
() => toCleanup.forEach((n) => releaseAudioNode(n)),
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue