- Cargo workspace per BUILD-SPEC §3 with stub crates for later milestones - core: §4 data model, UI Event type, ResourceStore (slot manifest, variants, gain/category/bed, path-escape guard, missing-file report) - resources/manifest.json covering every §8 slot + original placeholder media generated by scripts/gen-placeholders.mjs (never overwrites); OFL fonts - voice: AudioBus with per-category gains and bed mutual exclusion, rodio backend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
# resources/
|
||
|
||
All media is loaded by **slot name** through `manifest.json`; code never hardcodes a path.
|
||
|
||
```jsonc
|
||
"sounds": {
|
||
"badge-pop": { "files": ["sounds/badge-pop-1.wav", "…-2", "…-3"], "gain": 0.8, "category": "ui" },
|
||
"pencil-paper-bed": { "files": ["…"], "category": "ambient", "bed": true }
|
||
}
|
||
```
|
||
|
||
- `files`: one or more variants (sounds pick one at random; icons/fonts/videos use the first).
|
||
- `gain`: per-slot gain (0–2), multiplied by the category gain (`ui`, `agent`, `ambient`) and master.
|
||
- `bed`: long looping sound; only one bed plays at a time.
|
||
|
||
## Replacing media
|
||
|
||
Drop a file at the same path (or point the manifest at a new one). No code changes.
|
||
Every file here is an original placeholder generated by `npm run placeholders`
|
||
(`scripts/gen-placeholders.mjs`): synthesized tones/noise, drawn gradient icons, a blank
|
||
2 s clip. The script never overwrites existing files. Fonts are the upstream OFL releases
|
||
(Barlow, Patrick Hand) from github.com/google/fonts, licences in `fonts/OFL-*.txt`.
|
||
|
||
Do not copy media from other products into this folder; use originals or CC0 sources.
|