Preload audio using once_cell and correct typo

Add once_cell 1.21.4 and a Lazy‑initialized HashMap to store OGG bytes.

Replace file reads with in‑memory Cursor decoding, fix the
SoundrackParts enum typo, and derive Hash traits for it.
This commit is contained in:
2026-04-09 01:37:57 +02:00
parent 3e932e5638
commit 7ec3eec6e3
3 changed files with 38 additions and 28 deletions
+1
View File
@@ -15,3 +15,4 @@ ratatui = "0.30.0"
log = "0.4.29"
simplelog = "0.12.2"
rodio = "0.22.2"
once_cell = "1.21.4"