From dfd33e58a5e6f830d60e978afad7348f7a16068d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 22 Aug 2024 13:27:44 +0900 Subject: feat(frontend): add minimal style to watch with audio play request --- frontend/app/states/watch.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontend/app/states/watch.ts') diff --git a/frontend/app/states/watch.ts b/frontend/app/states/watch.ts index 3b80f2f..ba3dd2a 100644 --- a/frontend/app/states/watch.ts +++ b/frontend/app/states/watch.ts @@ -1,4 +1,5 @@ import { atom } from "jotai"; +import { AudioController } from "../.client/audio/AudioController"; import type { components } from "../.server/api/schema"; import type { SubmitResult } from "../types/SubmitResult"; @@ -245,3 +246,5 @@ export const handleWsSubmitResultMessageAtom = atom( callback(player_id, newResult, score); }, ); + +export const audioControllerAtom = atom(null); -- cgit v1.2.3-70-g09d2