Audio: reverb / convolution effects are silent #17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LakshanSivakumar on 2026-11-26T09:20:51Z.
Sound plays through CoreAudio, but effects that rely on the console audio DSP (reverb and convolution) are not emulated, so they are silent. Dry sound is fine. The work is to implement the DSP effect path in victory-hle's audio module, or a CPU fallback.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T15:57:02Z.
Status: not started. Still open and up for grabs.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-26T20:41:19Z.
Opened #146: a CPU-fallback convolution tail for chad.dll streams, behind
VICTORY_GUESS_DSP=1(off by default, so current silent behaviour is unchanged until someone verifies it on a real run). It doesn't read the title's own impulse response (still unknown format), so it's a synthetic ~100ms decaying-noise tail, not the real effect — also addedVICTORY_TRACE_DSP=1to help capture the realStreamDesc::irdata on a future run and settle that.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by brainbudt on 2026-11-27T12:56:50Z.
/claim — replacing the O(N*TAPS) scalar convolution in chad.dll (modules/dsp.rs) with a zero-allocation partitioned overlap-save FFT convolver.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T12:57:00Z.
Claimed by @brainbudt. Open a draft pull request with
Refs #17in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:03:05Z.
Finding from the GDK 2026.10 public docs (the XDK's MarkdownDocsOnly package, "XDSP" audio reference + overviews) — in my own words, no SDK text copied:
The impulse-response layout that
StreamDesc::irholds is documented now:impulseResponseLengthInFloatscounts floats, so N complex bins = N*2 floats. With the stereo-IR option and channelCount 2 the buffer is doubled (one IR per channel).0xFFFFACE1, then up to 15 little-endian 4-byte entries of (u16 cutoff frequency, u16 block index). Entries must have strictly increasing block indices; the hardware processes whole blocks up to an entry's block index, then only the firstcutoffsamples of each later block. (This is the "partitioned IR layout" our dsp.rs comment calls unknown — it is the block structure plus this trailing reduction table.)So a
VICTORY_TRACE_DSP/VICTORY_DUMP_DSPcapture can now be interpreted:stream<n>_ir.f32should parse as complex float pairs in blocks, with a trailingE1 AC FF FFreduction block when present. Still unverified against a real run (the game download here is incomplete), but the format question is settled by the docs. This should let theVICTORY_GUESS_DSP=1fallback be upgraded to a real FFT-based convolution over the title's own IR once a run confirms the layout.