Audio: reverb / convolution effects are silent #17

Open
opened 2026-11-26 09:20:51 +00:00 by LakshanSivakumar · 5 comments
LakshanSivakumar commented 2026-11-26 09:20:51 +00:00 (Migrated from github.com)
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6623465503 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17). Originally posted by [LakshanSivakumar](https://github.com/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.
LakshanSivakumar commented 2026-11-26 15:57:02 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7196971651 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7196971651). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T15:57:02Z. --- Status: not started. Still open and up for grabs.
m0rff commented 2026-11-26 20:41:19 +00:00 (Migrated from github.com)
Author
Contributor

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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7202972269 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7202972269). Originally posted by [m0rff](https://github.com/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 added `VICTORY_TRACE_DSP=1` to help capture the real `StreamDesc::ir` data on a future run and settle that.
brainbudt commented 2026-11-27 12:56:50 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7218871169 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7218871169). Originally posted by [brainbudt](https://github.com/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.
github-actions[bot] commented 2026-11-27 12:57:00 +00:00 (Migrated from github.com)
Author
Contributor

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 #17 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7218874980 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7218874980). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T12:57:00Z. --- Claimed by @brainbudt. Open a draft pull request with `Refs #17` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 12:03:05 +00:00 (Migrated from github.com)
Author
Contributor

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::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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238958119 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/17#issuecomment-7238958119). Originally posted by [AnastasisKon](https://github.com/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::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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#17
No description provided.