diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-22 13:27:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-22 13:27:44 +0900 |
| commit | dfd33e58a5e6f830d60e978afad7348f7a16068d (patch) | |
| tree | 8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/states/watch.ts | |
| parent | 7fda765d654a63945296d813c177aeb9e423f120 (diff) | |
| download | iosdc-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/watch.ts')
| -rw-r--r-- | frontend/app/states/watch.ts | 3 |
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); |
