The music, effects and voice volumes classify nothing at their defaults, look a voice up once per wave buffer, and count unmatched sounds as effects (#722)

At 100/100/100 the RomFS, zstd and Opus hooks and the mixer lookup are skipped (audio_cat_active); the
RomFS handle still keeps its category, so a stream opened earlier is classified by its later reads once a
setting moves. The mixer keeps each voice's category until it moves to another wave buffer or coefficient
table, instead of up to six scans of a 32768-entry ring per voice per frame; the ring is 4096 entries and
lookups take its lock. zstd decodes check the BARS magic before any lookup. The guesses from BWAV headers
(Opus means voice, stereo ADPCM means music) are gone: Opus streams are the DmT cutscene beds and stereo
ADPCM is common among effects. Unknown Opus output counts as effects. A once-a-minute log line counts the
categories while a setting is below 100.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-13 08:38:08 +03:00
1 parent 25f42aa84e
commit f83fdbbd0b
9 files changed
+273 -370

No files matched your search

+3
View File
@@ -322,6 +322,9 @@
# audio_prefill_ms = 20
# Volume in percent (0 to 100), on top of the game's own. Changes while the game runs take effect at once.
# volume = 100
# Music, sound effects and voices (characters, creatures, Link) in percent, on top of volume. Live like volume. Below
# 100 the port tells the three apart by the sound files the game loads; a value moved during play reaches sounds
# loaded after the change at once and earlier ones by their next stream read, the rest count as effects.
# volume_music = 100
# volume_sfx = 100
# volume_voice = 100