Skip to content

Commit bc50e8c

Browse files
committed
fix: do not close audio context for now in useplayer hook:
1 parent 3c924bf commit bc50e8c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/common-app/src/examples/DrumMachine/usePlayer.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ export default function usePlayer(options: PlayerOptions) {
133133
playingInstruments.value = getPlayingInstruments();
134134
}
135135

136-
return () => {
137-
audioContext.close();
138-
};
139136
// \/ Shared values are not necessary in deps array
140137
// eslint-disable-next-line react-hooks/exhaustive-deps
141138
}, [isPlaying, setup]);

0 commit comments

Comments
 (0)