Entry 84
Cheat 16's DUDE bank and its effects table
Documented in Cheats (the button codes and the race options), The race's sound: engines, hits and tyres.
This entry answers the question left open by The tunnel reverb: libspu's studio large, deepened in zones with flag 0x80.
Files6 in 4 directories
snd.rscrates/hwtr/src/spu.rsrace.rsfront.rscrates/hwtr-hle/tests/effects_table.rsdocs/engine/race-sound.mdCheat option 16 (0x80013ff8(16) in the race's sound load, 0x8001924c) changes two things:
- The bank.
DUDEis opened as VAB 0 instead ofMAINSFX2. Every track's archive has it: one program of eight tones. - The table. It calls 0x8001a73c with 1 instead of 0. That function fills the effects table (0x8011aec0, 16 bytes per id) from the executable's records (0x800bd5f8: tone, program, note, id). With 1, every effect gets program 0, its tone if under 8 (else 3), and a note of that tone plus 60. The note is taken from the tone already stored, so a substituted 3 gives 63.
In the port:
hwtr_game::snd::effects_table(byte, dude)builds the table both ways. It moved out of the app'sEffects::new.- The race loads
DUDEVH/DUDEVBwhensetup.options & 16. The options come from the profile's cheats through the front end, so the cheat entered at the password screen reaches the race.
Checked: effects_table_matches_the_original (hle tests/effects_table.rs) calls 0x8001a73c(0) and (1) on a race state and compares all 61 entries, ids included. A guard makes sure the cheat changes more than 40 of them, so the test can't pass with two equal tables.
Entry 83's dude question is answered. Its reverb question is carried here.
the reverb's sound against a hardware recording, and the hardware's half-band filters around it