dsp: a CPU-fallback reverb tail for convolution streams, behind VICTORY_GUESS_DSP #146
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/146"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-26T20:36:18Z.
Issue #17:
chad.dllconvolution streams always returned digital silence, since the title's own impulse response arrives in the hardware's own partitioned frequency-domain layout, which is not documented, soStreamDesc::irwas never read.This adds the CPU fallback the issue suggests as an alternative: a fixed, deterministic ~100 ms synthetic decaying-noise tail, convolved with the input per channel and scaled by the command's gains, with the tail carried across blocks so it does not click at every block boundary. It is a guess, so it stays off by default behind
VICTORY_GUESS_DSP=1; default behaviour (silence) is unchanged.Also adds
VICTORY_TRACE_DSP=1, which logs the leading floats of a convolution stream's ownStreamDesc::irat activation, to help a future run with the real game settle what format that data is actually in (and possibly replace this guess with the real thing).No game needed to test this: the convolution math, the history carry-over across block boundaries, and the exported
XDspSubmitCommandpath are all covered by new/updated unit tests inmodules::dsp::tests.cargo test -p victory-hle -p victory -p victory-gpu -p xtask: passcargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings: cleancargo xtask policy: passImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T22:38:20Z.
Review: APPROVED
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!