Audio: reverb / convolution effects are silent #17

Open
opened 2026-11-26 14:42:38 +00:00 by github-bot · 5 comments
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 09:20 UTC · original

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.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 09:20 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:42:38 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 15:57 UTC · original

Status: not started. Still open and up for grabs.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 15:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7196971651) Status: not started. Still open and up for grabs.
Author
Owner

@⁠m0rff on GitHub · 2026-11-26 20:41 UTC · original

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 added VICTORY_TRACE_DSP=1 to help capture the real StreamDesc::ir data on a future run and settle that.

**@⁠m0rff** on GitHub · 2026-11-26 20:41 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7202972269) 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 added `VICTORY_TRACE_DSP=1` to help capture the real `StreamDesc::ir` data on a future run and settle that.
Author
Owner

@⁠brainbudt on GitHub · 2026-11-27 12:56 UTC · original

/claim — replacing the O(N*TAPS) scalar convolution in chad.dll (modules/dsp.rs) with a zero-allocation partitioned overlap-save FFT convolver.

**@⁠brainbudt** on GitHub · 2026-11-27 12:56 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7218871169) /claim — replacing the O(N*TAPS) scalar convolution in chad.dll (modules/dsp.rs) with a zero-allocation partitioned overlap-save FFT convolver.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 12:57 UTC · original

Claimed by @⁠brainbudt. Open a draft pull request with Refs #17 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 12:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7218874980) Claimed by @⁠brainbudt. Open a draft pull request with `Refs #17` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:03 UTC · original

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::ir holds is documented now:

  • It is frequency-domain, stored as interleaved complex float pairs (real, imaginary per bin). impulseResponseLengthInFloats counts floats, so N complex bins = N*2 floats. With the stereo-IR option and channelCount 2 the buffer is doubled (one IR per channel).
  • The IR is processed in blocks; convolution block sizes are 512 or 1024 frames (1024 preferred). The hardware convolves block-wise.
  • Optionally, a reduction block is appended at the end of the IR buffer, one block in size: it starts with the 4-byte signature 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 first cutoff samples 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.)
  • Also documented: mono or stereo streams only, and the connection's base buffer must be 64K-aligned physical-cacheable XMemAlloc memory of at least 64 KB.

So a VICTORY_TRACE_DSP / VICTORY_DUMP_DSP capture can now be interpreted: stream<n>_ir.f32 should parse as complex float pairs in blocks, with a trailing E1 AC FF FF reduction 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 the VICTORY_GUESS_DSP=1 fallback be upgraded to a real FFT-based convolution over the title's own IR once a run confirms the layout.

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:03 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7238958119) 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::ir` holds **is** documented now: - It is frequency-domain, stored as **interleaved complex float pairs** (real, imaginary per bin). `impulseResponseLengthInFloats` counts floats, so N complex bins = N*2 floats. With the stereo-IR option and channelCount 2 the buffer is doubled (one IR per channel). - The IR is processed in **blocks**; convolution block sizes are 512 or 1024 frames (1024 preferred). The hardware convolves block-wise. - Optionally, a **reduction block** is appended at the end of the IR buffer, one block in size: it starts with the 4-byte signature `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 first `cutoff` samples 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.) - Also documented: mono or stereo streams only, and the connection's base buffer must be 64K-aligned physical-cacheable XMemAlloc memory of at least 64 KB. So a `VICTORY_TRACE_DSP` / `VICTORY_DUMP_DSP` capture can now be interpreted: `stream<n>_ir.f32` should parse as complex float pairs in blocks, with a trailing `E1 AC FF FF` reduction 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 the `VICTORY_GUESS_DSP=1` fallback be upgraded to a real FFT-based convolution over the title's own IR once a run confirms the layout.
This discussion has been locked. Commenting is limited to contributors.
No description provided.