aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/states
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 13:27:44 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 13:27:44 +0900
commitdfd33e58a5e6f830d60e978afad7348f7a16068d (patch)
tree8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/states
parent7fda765d654a63945296d813c177aeb9e423f120 (diff)
downloadiosdc-japan-2024-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.tar.gz
iosdc-japan-2024-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.tar.zst
iosdc-japan-2024-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.zip
feat(frontend): add minimal style to watch with audio play request
Diffstat (limited to 'frontend/app/states')
-rw-r--r--frontend/app/states/watch.ts3
1 files changed, 3 insertions, 0 deletions
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<AudioController | null>(null);