DSP: convolution streams play the title's IRs (phones, TVs, radios): its IR layout on top of #2483 #3332

Open
thebigredder wants to merge 6 commits from upstream-pr/3332 into main
thebigredder commented 2026-11-26 18:44:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by thebigredder on 2026-11-26T18:44:11Z.


What

Phone calls, videos played on the in-game phone, TVs and radios placed in the world are silent: the title plays them through the audio DSP's convolution streams (chad.dll, XDspActivate / XDspSubmitCommand), and dsp.rs returns zeros for those. #240 (by @Quat3rnion), rebased as #2483 (by @kais7654), adds a host convolver; with it alone the title's convolution output is infinite in every sample (loud crackling, and the rest of the mix lost). This PR stacks on #2483's three commits, rebased onto current main, and adds what makes it work with the title's own IRs.

The fixes

  1. The IR's last partition is not a filter. Every IR the title hands over (build 1.0.2.1) ends in one partition of 2 * block floats that starts with the word 0xfffface1, a NaN as a float: 51,200 floats with it at 49,152; 40,960 at 38,912; 83,968 at 81,920. Fed to the convolver, that one NaN makes every output sample non-finite. The filter is now the partitions before the first such one, and any other non-finite word counts as zero. omonkeyz/xbox-emulator (crates/compat/chad, GPL-3.0) independently treats the same word as an IR metadata marker; no code is taken from it.
  2. The partitions are 2-block windows a block apart. Read back from the title's memory while it runs and inverse-transformed, each partition's second half holds the same energy as the next partition's first half (e.g. 4.173e-7 and 4.166e-7; 3.547e-7 and 3.544e-7; 1.896e-7 and 1.896e-7). The overlap-add assumed block samples zero-padded, so every overlap counted twice: a click at each block boundary (a constant crackle). Each window is now cut to its first half, zero-padded; the next partition holds the rest.
  3. Stereo IRs and stream slots, as in JMAN730/project-flamingo 645abbeb: ir_floats is one channel's length, so a stereo-IR activation sliced half the IR and was refused, and each refused activation kept its slot reserved (128 slots, then every activation failed).
  4. shortcut: the convolver's output is kept finite and clamped to [-1, 1], so an IR in a layout not seen yet cannot blast the mix. A refused convolution stream logs a warning.

FFT and IFFT streams still return silence, as in #2483.

Testing

  • In game, Windows 11, RTX 3090 (Series S profile): phone calls, phone videos, TVs and world radios play clean, the rest of the audio unchanged, confirmed by ear over several sessions. Logged convolution output: finite, peaks about 0.01 to 0.15, nothing clipped; before, every sample was infinite. This was on a downstream tree (TaynanGT/Vice-Tay) whose dsp.rs and dsp_convolve.rs match this PR's apart from temporary diagnostics, which are left out here.
  • The same build under Wine / vkd3d-proton (Linux, same card): phone calls and videos play.
  • Unit tests (victory-hle, dsp): 9 pass, among them a new one, the_title_s_ir_layout_convolves_exactly, which encodes an IR as the title lays it out (2-block windows and the trailing marker partition) and checks against direct convolution. With fix 2 taken out it fails (largest error 3.3 against under 0.02 with it), so it tests the fix. Run on Windows binaries under Wine.
  • cargo clippy -p victory-hle --all-targets: no warnings.

Not done: a check against reference output from console hardware; only the title's IRs and its audio by ear.

🤖 Generated with Claude Code

https://claude.ai/code/session_01R8b3MamTtfh5yW9Go2svhi

<!-- greyfinch-sync:Marvisak/VIctory:issue:5515467307 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332). Originally posted by [thebigredder](https://github.com/thebigredder) on 2026-11-26T18:44:11Z. --- ## What Phone calls, videos played on the in-game phone, TVs and radios placed in the world are silent: the title plays them through the audio DSP's convolution streams (`chad.dll`, `XDspActivate` / `XDspSubmitCommand`), and `dsp.rs` returns zeros for those. #240 (by @Quat3rnion), rebased as #2483 (by @kais7654), adds a host convolver; with it alone the title's convolution output is infinite in every sample (loud crackling, and the rest of the mix lost). This PR stacks on #2483's three commits, rebased onto current `main`, and adds what makes it work with the title's own IRs. ## The fixes 1. **The IR's last partition is not a filter.** Every IR the title hands over (build 1.0.2.1) ends in one partition of `2 * block` floats that starts with the word `0xfffface1`, a NaN as a float: 51,200 floats with it at 49,152; 40,960 at 38,912; 83,968 at 81,920. Fed to the convolver, that one NaN makes every output sample non-finite. The filter is now the partitions before the first such one, and any other non-finite word counts as zero. [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator) (`crates/compat/chad`, GPL-3.0) independently treats the same word as an IR metadata marker; no code is taken from it. 2. **The partitions are 2-block windows a block apart.** Read back from the title's memory while it runs and inverse-transformed, each partition's second half holds the same energy as the next partition's first half (e.g. 4.173e-7 and 4.166e-7; 3.547e-7 and 3.544e-7; 1.896e-7 and 1.896e-7). The overlap-add assumed `block` samples zero-padded, so every overlap counted twice: a click at each block boundary (a constant crackle). Each window is now cut to its first half, zero-padded; the next partition holds the rest. 3. **Stereo IRs and stream slots**, as in [JMAN730/project-flamingo 645abbeb](https://github.com/JMAN730/project-flamingo/commit/645abbeb): `ir_floats` is one channel's length, so a stereo-IR activation sliced half the IR and was refused, and each refused activation kept its slot reserved (128 slots, then every activation failed). 4. `shortcut:` the convolver's output is kept finite and clamped to [-1, 1], so an IR in a layout not seen yet cannot blast the mix. A refused convolution stream logs a warning. FFT and IFFT streams still return silence, as in #2483. ## Testing - **In game, Windows 11, RTX 3090** (Series S profile): phone calls, phone videos, TVs and world radios play clean, the rest of the audio unchanged, confirmed by ear over several sessions. Logged convolution output: finite, peaks about 0.01 to 0.15, nothing clipped; before, every sample was infinite. This was on a downstream tree (TaynanGT/Vice-Tay) whose `dsp.rs` and `dsp_convolve.rs` match this PR's apart from temporary diagnostics, which are left out here. - **The same build under Wine / vkd3d-proton** (Linux, same card): phone calls and videos play. - **Unit tests** (`victory-hle`, `dsp`): 9 pass, among them a new one, `the_title_s_ir_layout_convolves_exactly`, which encodes an IR as the title lays it out (2-block windows and the trailing marker partition) and checks against direct convolution. With fix 2 taken out it fails (largest error 3.3 against under 0.02 with it), so it tests the fix. Run on Windows binaries under Wine. - `cargo clippy -p victory-hle --all-targets`: no warnings. Not done: a check against reference output from console hardware; only the title's IRs and its audio by ear. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01R8b3MamTtfh5yW9Go2svhi
Dukestar69 commented 2026-11-26 18:47:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T18:47:56Z.

Review: COMMENTED


Tested on Windows against origin/main (63bcca4).

The DSP convolution changes look solid and pass all checks:

  • cargo test -p victory-hle --lib modules::dsp -- --test-threads=1: 9 passed, 0 failed.
  • cargo clippy -p victory-hle -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 192 files ok.

One scope issue to clean up before merge: this PR also includes unrelated changes in crates/victory-gpu/src/descriptor/host.rs (pair_base + heap-cap test skip) and crates/victory-gpu/src/memory.rs (which appear to belong to a separate GPU/NVIDIA heap-cap PR). Dropping those two victory-gpu files from the branch would keep this PR cleanly scoped to DSP convolution.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6079154039 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#pullrequestreview-6079154039). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T18:47:56Z. **Review:** COMMENTED --- Tested on Windows against `origin/main` (`63bcca4`). The DSP convolution changes look solid and pass all checks: - `cargo test -p victory-hle --lib modules::dsp -- --test-threads=1`: 9 passed, 0 failed. - `cargo clippy -p victory-hle -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 192 files ok. One scope issue to clean up before merge: this PR also includes unrelated changes in `crates/victory-gpu/src/descriptor/host.rs` (`pair_base` + heap-cap test skip) and `crates/victory-gpu/src/memory.rs` (which appear to belong to a separate GPU/NVIDIA heap-cap PR). Dropping those two `victory-gpu` files from the branch would keep this PR cleanly scoped to DSP convolution. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
cloph-dsp commented 2026-11-26 19:03:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-26T19:03:52Z.


Independent local verification of PR #3332 (DSP: convolution streams play the title's IRs), head ce9cf32aad.

  • Windows, Rust 1.100.0/MSVC, cargo test --locked, CARGO_BUILD_JOBS=2, per-worktree CARGO_TARGET_DIR (D:\Victory-Contrib\target-3332).
  • cargo test --locked -p victory-hle --lib -- --exact modules::dsp_convolve::tests::the_title_s_ir_layout_convolves_exactly modules::dsp::tests::convolution_through_the_api_returns_wet_audio -> 2 passed, 0 failed, 158 filtered, exit 0.
  • git diff --check origin/main HEAD -> clean.
  • Negative control: both test names are absent from the merge base 63bcca43..., so they are genuinely added by this PR.
  • Both tests are CPU/synthetic (no title audio files); the in-game IR confirmation reported by the author was not independently reproduced. The two victory-gpu files in this PR were outside the tests I exercised.

AI-assisted (Hy4 flash). GPU/driver: N/A for these CPU tests. No game data used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201156029 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7201156029). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-26T19:03:52Z. --- Independent local verification of PR #3332 (`DSP: convolution streams play the title's IRs`), head ce9cf32aad54a4c9b548fc65239469064b16ca46. - Windows, Rust 1.100.0/MSVC, `cargo test --locked`, `CARGO_BUILD_JOBS=2`, per-worktree `CARGO_TARGET_DIR` (`D:\Victory-Contrib\target-3332`). - `cargo test --locked -p victory-hle --lib -- --exact modules::dsp_convolve::tests::the_title_s_ir_layout_convolves_exactly modules::dsp::tests::convolution_through_the_api_returns_wet_audio` -> 2 passed, 0 failed, 158 filtered, exit 0. - `git diff --check origin/main HEAD` -> clean. - Negative control: both test names are absent from the merge base 63bcca43..., so they are genuinely added by this PR. - Both tests are CPU/synthetic (no title audio files); the in-game IR confirmation reported by the author was not independently reproduced. The two `victory-gpu` files in this PR were outside the tests I exercised. AI-assisted (Hy4 flash). GPU/driver: N/A for these CPU tests. No game data used.
thebigredder commented 2026-11-26 20:16:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by thebigredder on 2026-11-26T20:16:20Z.


Thanks @Dukestar69, right: the two victory-gpu files came from #2483's descriptor-heap test commit (2b6bb33), which this branch carried along with #2483's DSP commits. Reverted in a6cf62e; the PR's diff against main is now dsp.rs, dsp_convolve.rs and modules/mod.rs only. Thanks also @cloph-dsp for the independent run.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7202481470 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7202481470). Originally posted by [thebigredder](https://github.com/thebigredder) on 2026-11-26T20:16:20Z. --- Thanks @Dukestar69, right: the two `victory-gpu` files came from #2483's descriptor-heap test commit (2b6bb33), which this branch carried along with #2483's DSP commits. Reverted in a6cf62e; the PR's diff against `main` is now `dsp.rs`, `dsp_convolve.rs` and `modules/mod.rs` only. Thanks also @cloph-dsp for the independent run.
sawetco commented 2026-11-27 00:51:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sawetco on 2026-11-27T00:51:58Z.


Downstream Series X report from Windows 11, RTX 5070 12 GB (621.40), native D3D12, 1440p. Our PR48 build uses avatarmanz/VIctory-7900XTX at d78024b with local renderer changes. In a new playthrough through Jason’s house, the player heard phone conversations in cutscenes, but the far end of calls during free roam was silent. Earlier on this machine that included Lucia’s prison call, its automated announcement, and the following morning’s call. Jason’s side and the car radio were audible.

The three-file diff at a6cf62e applies cleanly to our HLE source. I ran the same synthetic 512-sample input through XDspActivate and XDspSubmitCommand on both versions. The baseline reported wet return, energy 0. After the patch, the wet-return test passed its mean-square threshold of 0.5, and all nine DSP tests passed in an isolated Windows CPU build of the two modules. The game observation is from the original build. Listening to a free-roam call on the patched Series X build is still pending.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7206817354 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7206817354). Originally posted by [sawetco](https://github.com/sawetco) on 2026-11-27T00:51:58Z. --- Downstream Series X report from Windows 11, RTX 5070 12 GB (621.40), native D3D12, 1440p. Our PR48 build uses avatarmanz/VIctory-7900XTX at `d78024b` with local renderer changes. In a new playthrough through Jason’s house, the player heard phone conversations in cutscenes, but the far end of calls during free roam was silent. Earlier on this machine that included Lucia’s prison call, its automated announcement, and the following morning’s call. Jason’s side and the car radio were audible. The three-file diff at `a6cf62e` applies cleanly to our HLE source. I ran the same synthetic 512-sample input through `XDspActivate` and `XDspSubmitCommand` on both versions. The baseline reported `wet return, energy 0`. After the patch, the wet-return test passed its mean-square threshold of 0.5, and all nine DSP tests passed in an isolated Windows CPU build of the two modules. The game observation is from the original build. Listening to a free-roam call on the patched Series X build is still pending.
YaBulochka commented 2026-11-27 13:48:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by YaBulochka on 2026-11-27T13:48:46Z.


Same symptom on Linux/Wine, reporting in case it helps: the player's own side of a phone call is heard, the far end is completely silent; the title's "mono audio" setting changes the mix to mono but does not bring the caller back. In-game phone videos and radio are silent as well, which matches your description of the convolution streams.

Build: avatarmanz/VIctory-7900XTX linux-wine-pr (b62290c) + #451, #454, #434, #437, #446, #433, #443, #460, #461. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, 30 GB RAM, Series S, 1280x720 render with 1920x1080 output.

The log shows the DSP coming up:

audio DSP connected base_length=393216 ir_seconds=24 max_streams=128 max_channels=1
audio decoder connected streams=256 memory=1064960 options=1

and then nothing about convolution streams. XDspActivate/XDspSubmitCommand are not logged at all, so I cannot yet say whether the title submits them here and gets zeros, or never activates them.

Questions:

  1. Is the DSP convolver expected to work under Wine/RADV, or does it use something host-specific (WASAPI/AVX path) that would need its own work?
  2. Does the fix need the host to give it the IR layout only, or the full #2483 convolver as a prerequisite (i.e., is #2483 required to test #3332)?
  3. Anything cheap I can add to the log on this build (a line per XDspActivate/XDspSubmitCommand with the stream's parameters) so we can tell "not submitted" from "submitted and silent"? I can run that and paste the result.

Thanks — this is the last big missing thing on this card apart from the stretched meshes.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7219974550 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7219974550). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-27T13:48:46Z. --- Same symptom on Linux/Wine, reporting in case it helps: the player's own side of a phone call is heard, the far end is completely silent; the title's "mono audio" setting changes the mix to mono but does not bring the caller back. In-game phone videos and radio are silent as well, which matches your description of the convolution streams. Build: avatarmanz/VIctory-7900XTX `linux-wine-pr` (`b62290c`) + #451, #454, #434, #437, #446, #433, #443, #460, #461. RX 7600 XT 8 GB (RDNA3), Mesa 27.0.0-devel (RADV), Wine 11.22, 30 GB RAM, Series S, 1280x720 render with 1920x1080 output. The log shows the DSP coming up: ``` audio DSP connected base_length=393216 ir_seconds=24 max_streams=128 max_channels=1 audio decoder connected streams=256 memory=1064960 options=1 ``` and then nothing about convolution streams. `XDspActivate`/`XDspSubmitCommand` are not logged at all, so I cannot yet say whether the title submits them here and gets zeros, or never activates them. Questions: 1. Is the DSP convolver expected to work under Wine/RADV, or does it use something host-specific (WASAPI/AVX path) that would need its own work? 2. Does the fix need the host to give it the IR layout only, or the full #2483 convolver as a prerequisite (i.e., is #2483 required to test #3332)? 3. Anything cheap I can add to the log on this build (a line per `XDspActivate`/`XDspSubmitCommand` with the stream's parameters) so we can tell "not submitted" from "submitted and silent"? I can run that and paste the result. Thanks — this is the last big missing thing on this card apart from the stretched meshes.
sawetco commented 2026-11-27 14:25:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sawetco on 2026-11-27T14:25:35Z.


@YaBulochka I checked the sources at b62290c and the current #3332 head (a6cf62e).

  • The new convolver is CPU-side Rust and uses neither WASAPI nor an AVX-specific path. The PR author heard the calls and videos working under Wine/vkd3d-proton. Your RX 7600 XT and exact stack are still a separate useful check. Convolver source
  • The complete #3332 diff already includes the DSP portions of #2483 plus the game's IR layout correction. If you take the full three-file diff against its base, it includes both. PR file list
  • On your current build, try a diagnostics build with VICTORY_LOG='info,victory_hle::modules::dsp=debug' in the environment of the actual Wine process. audio DSP stream activated kind=1 ... is present at b62290c, after initial activation validation. The connected info line only shows the connection, and an activation log only establishes that activation reached that point. To distinguish activation from submission, a single summary per stream showing first submit and input/output peaks would be more useful than logging every block. Logging setup · Activation and submit handlers

From our RTX 5070 check, the baseline submit handler returned zero for the synthetic input and the patched handler passed with the same input. The Linux observations above are the author's, and the rest is source inspection. AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220767219 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7220767219). Originally posted by [sawetco](https://github.com/sawetco) on 2026-11-27T14:25:35Z. --- @YaBulochka I checked the sources at `b62290c` and the current #3332 head (`a6cf62e`). - The new convolver is CPU-side Rust and uses neither WASAPI nor an AVX-specific path. The PR author heard the calls and videos working under Wine/vkd3d-proton. Your RX 7600 XT and exact stack are still a separate useful check. [Convolver source](https://github.com/Marvisak/VIctory/blob/a6cf62ef60426d65c77f7f48247bae0340d37709/crates/victory-hle/src/modules/dsp_convolve.rs) - The complete #3332 diff already includes the DSP portions of #2483 plus the game's IR layout correction. If you take the full three-file diff against its base, it includes both. [PR file list](https://github.com/Marvisak/VIctory/pull/3332/files) - On your current build, try a `diagnostics` build with `VICTORY_LOG='info,victory_hle::modules::dsp=debug'` in the environment of the actual Wine process. `audio DSP stream activated kind=1 ...` is present at `b62290c`, after initial activation validation. The `connected` info line only shows the connection, and an activation log only establishes that activation reached that point. To distinguish activation from submission, a single summary per stream showing first submit and input/output peaks would be more useful than logging every block. [Logging setup](https://github.com/avatarmanz/VIctory-7900XTX/blob/b62290c/crates/victory-core/src/logging.rs#L13-L24) · [Activation and submit handlers](https://github.com/avatarmanz/VIctory-7900XTX/blob/b62290c/crates/victory-hle/src/modules/dsp.rs#L133-L215) From our RTX 5070 check, the baseline submit handler returned zero for the synthetic input and the patched handler passed with the same input. The Linux observations above are the author's, and the rest is source inspection. AI-assisted with Codex.
upipibi commented 2026-11-28 02:28:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-28T02:28:29Z.


An independent implementation that agrees on the layout, and one note on level (read from both diffs; I didn't run either).

trustno1-coder/VIctory-NVIDIA#77 (merged there, GPL-3, ported from the same dsp.rs) computes the mono convolutions with its own partitioned FFT convolver. Its reading of the IRs matches fixes 1 and 2 here:

  • 2048-float blocks, each the FFT of a 2048-sample window, with window k covering samples (k-1)·1024 to (k+1)·1024;
  • a final block starting with 0xFFFFACE1, left out of the filter.

It checked the window reading on 21 dumped responses and reports TVs and phone calls heard in game (RTX 3090, 127 streams, all mono, 1024 frames).

Level. Its description says the textbook 1/2048 inverse scaling sounded quiet next to the rest of the mix. So it multiplies by a fixed 2×, picked by ear at a TV (VICTORY_DSP_GAIN), and notes that this raises every reverb as well. It applies the command's first gain only (convolver.process(input, output, command.gains[0] * gain()), its dsp.rs:250). This PR ramps gains[0] to gains[1] across the block on top of 1/n. So the two trees differ by that 2× and the ramp. A level check of a phone call against dialogue and music on this head would show whether 1× is too quiet, or whether the 2× there over-drives the reverbs.

AI-assisted (Claude Code, Claude Opus 5.5 read both diffs).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7232386001 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7232386001). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T02:28:29Z. --- An independent implementation that agrees on the layout, and one note on level (read from both diffs; I didn't run either). trustno1-coder/VIctory-NVIDIA#77 (merged there, GPL-3, ported from the same `dsp.rs`) computes the mono convolutions with its own partitioned FFT convolver. Its reading of the IRs matches fixes 1 and 2 here: - 2048-float blocks, each the FFT of a 2048-sample window, with window k covering samples (k-1)·1024 to (k+1)·1024; - a final block starting with `0xFFFFACE1`, left out of the filter. It checked the window reading on 21 dumped responses and reports TVs and phone calls heard in game (RTX 3090, 127 streams, all mono, 1024 frames). **Level.** Its description says the textbook 1/2048 inverse scaling sounded quiet next to the rest of the mix. So it multiplies by a fixed 2×, picked by ear at a TV (`VICTORY_DSP_GAIN`), and notes that this raises every reverb as well. It applies the command's first gain only (`convolver.process(input, output, command.gains[0] * gain())`, its `dsp.rs:250`). This PR ramps `gains[0]` to `gains[1]` across the block on top of 1/n. So the two trees differ by that 2× and the ramp. A level check of a phone call against dialogue and music on this head would show whether 1× is too quiet, or whether the 2× there over-drives the reverbs. AI-assisted (Claude Code, Claude Opus 5.5 read both diffs).
andrewpozdnakov7-jpg commented 2026-11-28 02:43:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:43:18Z.


I checked the level question on the current #3332 head, a6cf62e, through XDspSubmitCommand. Test commit

The fixture uses four 1,024-frame mono blocks at each of two levels and a generated filter that crosses block boundaries. It compares the current gain ramp, unity gain, and a model of 2 × gains[0] held across the block. The same #3332 output clamp applies in all three cases.

Input Gain Peak RMS Clipped samples
Quiet Current ramp 0.1503 0.1031 0 / 4,096
Quiet Fixed 2× start 0.2734 0.2147 0 / 4,096
Loud Current ramp 0.9017 0.6185 0 / 4,096
Loud Fixed 2× start 1.0000 0.8758 3,072 / 4,096

All 24,576 outputs matched direct convolution within 0.000004. Ten tests passed in the isolated DSP suite. The same command test failed on main at 63bcca43, which completed all commands with silent output. This checks the numeric effect and headroom on generated audio. A quiet call relative to dialogue or music still needs a level check on the exact PR head in game.

If reusing the test, please retain its Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding it into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7232550866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3332#issuecomment-7232550866). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T02:43:18Z. --- I checked the level question on the current #3332 head, `a6cf62e`, through `XDspSubmitCommand`. [Test commit](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/032ef07c02a0a08b6f44b9d8eef235792d2cbf6c) The fixture uses four 1,024-frame mono blocks at each of two levels and a generated filter that crosses block boundaries. It compares the current gain ramp, unity gain, and a model of `2 × gains[0]` held across the block. The same #3332 output clamp applies in all three cases. | Input | Gain | Peak | RMS | Clipped samples | | --- | --- | ---: | ---: | ---: | | Quiet | Current ramp | 0.1503 | 0.1031 | 0 / 4,096 | | Quiet | Fixed 2× start | 0.2734 | 0.2147 | 0 / 4,096 | | Loud | Current ramp | 0.9017 | 0.6185 | 0 / 4,096 | | Loud | Fixed 2× start | 1.0000 | 0.8758 | 3,072 / 4,096 | All 24,576 outputs matched direct convolution within 0.000004. Ten tests passed in the isolated DSP suite. The same command test failed on `main` at `63bcca43`, which completed all commands with silent output. This checks the numeric effect and headroom on generated audio. A quiet call relative to dialogue or music still needs a level check on the exact PR head in game. If reusing the test, please retain its Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding it into another commit. AI-assisted with OpenAI Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3332:upstream-pr/3332'
git switch 'upstream-pr/3332'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3332'
git switch 'upstream-pr/3332'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3332'
git switch 'upstream-pr/3332'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3332'
git switch 'main'
git merge --squash 'upstream-pr/3332'
git switch 'main'
git merge --ff-only 'upstream-pr/3332'
git switch 'main'
git merge 'upstream-pr/3332'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!3332
No description provided.