Music volume, the sound volume option and the battle UI cues

Our reading of the executable (H unless marked). Completes “Music” and “Music payload”; the converter is converter/pdmusic.py (struct reader; container credit as in “Music”).

Music volume.

Sound volume option. 0x140240108 stores option / 100.0 (the float constant at 0x1402f8060) at 0x1405336b8. Each play request multiplies its volume by it (0x14024090a, 0x140240a96, 0x140240cc4, 0x1402413d2). The volume sits inside the logarithm of the send formula (“Speaker sends”), so the option scales every cue’s gain by (option / 100)^(2048 / 2000): × 0.593 at 60.

Battle UI cues. Common bank, no position, volume and pitch 0x1000. Both are gated on the local flag of the player’s battle menu object (menu + 0x30, mirrored at C + 0x30; see the HUD aura point row), so only the local player hears them.

Implementation notes for the rebuild