CH·19 Extraction & reverse engineering
verified 2026-08-01

DCSS Remastered Audio active

oLdpZ vunknown added 2026-08-01 verified 2026-08-01

[Use when]

You want to add adaptive, zone-aware music and layered SFX to the precompiled DCSS Windows Tiles binary without recompiling the engine.

Engines
S Standalone
License

Custom

Pricing

Free

Last verified

2026-08-01

Added

2026-08-01

about

DCSS Remastered Audio retrofits the native, unmodified Dungeon Crawl Stone Soup Windows Tiles executable (x86, 0.34) with an adaptive soundtrack and overlapping sound effects. It works by replacing winmm.dll with a proxy DLL that intercepts sndPlaySoundW calls, forwarding audio events and state-change marker paths over a named pipe to a Python/pygame-ce Audio Director process that runs a multi-channel mixer with per-branch crossfades and HP-based ducking.

The approach requires no source code changes and no recompilation. Game state (current branch, HP, events) is extracted via a sandboxed Lua ready() hook that calls crawl.playsound() with marker filenames — the proxy reads the filename rather than playing it, maps it to a mixer command, and the Director responds accordingly. SFX are synthesized locally via make_sfx.py; CC-BY music (Kevin MacLeod) is fetched from an external source at setup time via fetch_music.py.

A companion graphics layer extends the same architecture to video post-processing: a second proxy DLL (opengl32.dll) IAT-hooks gdi32!SwapBuffers and reads a shared-memory block written by the same Director process, applying GLSL fragment shader effects (color grading, vignette, bloom pulses) keyed to game state — all without touching the game binary.