File size: 796 Bytes
414dc55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Audio asset manifest: UI sound events and music tracks.

Assets are committed under assets/ui and played by the browser at runtime (no model
loads during play). They are authored once - by an open audio model at pre-bake time,
or by the procedural synth fallback in ``synth.py``.
"""

from __future__ import annotations

from ..constants import ASSETS_DIR

SFX_DIR = ASSETS_DIR / "ui" / "sfx"
MUSIC_DIR = ASSETS_DIR / "ui" / "music"

# event name -> filename. Event names are referenced by the UI's JS audio shim.
SFX_EVENTS: dict[str, str] = {
    "click": "click.wav",
    "select": "select.wav",
    "present": "present.wav",
    "accuse": "accuse.wav",
    "success": "success.wav",
    "fail": "fail.wav",
    "page": "page.wav",
}

MUSIC_TRACKS: tuple[str, ...] = ("ambient_theme.wav",)