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 LooperSalty/AnyXboxX. Originally posted by Dome5881 on 2026-11-27T17:41:44Z.
Steps to reproduce
anyxboxx run --game-dir <package> --override "VICTORY_LOG=victory_hle::modules::dsp=debug"with a title that connects to the audio DSP (chad.dll) and activates convolution streams.Expected result and actual result
Expected:
XDspSubmitCommandwrites the input block convolved with the stream's impulse response to the output buffer.Actual:
third_party/victory/crates/victory-hle/src/modules/dsp.rswrites zeros to every output block and returnsS_OK, so anything routed only through a convolution stream is silent. Nothing is logged when it happens.Our copy comes from Vice-Tay
a252348(2026-11-26). Vice-Tay merged a host convolver a day later, so we never got it.Log or compatibility report
Windows and Python version
Windows 11 Pro 10.0.26200. Python not involved (VIctory path, Rust).
Existing fix
[begin, end]gain ramp, and finite and clamped output.e45051af) ports #3332 and adds bounded IR reads and staged input for in-place blocks. It is opt-in (VICTORY_DSP_CONVOLUTION=1) until the comparison asked for in Vice-Tay #259 is done.The symptom is also tracked in VIctory #3545 and Vice-Tay #259.
Independent confirmation of the IR layout
Before finding #3332, I measured the layout separately: I logged the
XDspActivatedescriptors on a Series X profile session and dumped the IR buffers locally.kind = 1,channels = 1,options = 0,frames = 1024.ir_floatsis between 40960 and 212992, andgainsare always[1.0, 1.0]. All streams are driven from one thread at 46.9 commands/s (48000 / 1024).0xFFFFACE1, followed by small integer pairs. Same as #3332.pis the unnormalised real FFT of the window[h[(p-1)F .. pF], h[pF .. (p+1)F]], stored as bins0..Fin(re, im)pairs, with no Nyquist slot. The first half of windowpmatches the second half of windowp-1with correlation 1.000. Same finding as #3332.2Fsamples (42.7 ms) behind the original, with a strong cepstral peak at exactly 42.7 ms in the output and none in the input. #3332 describes the same double count as crackle at block boundaries.I cross-checked with my own implementation, which decodes each segment to time and rebuilds
[zeros(F), segment]kernels for overlap-save. On IR and input buffers dumped from the title, it matches direct convolution with the decoded response to a relative error of 3e-7 to 2e-6. In the title, audio that was silent under the stub plays clean. It costs about 36 µs per block for the longest IR (102 segments). I am not proposing it over #293. It only serves as an independent check of the layout.Open question: where the response starts
Both readings take the same
hout of the windows, but they place it one block apart.pcontributes segmentp - 1. As I read its convolver, the response then starts one block (21.3 ms at 1024 frames) after the input. I haven't run it to confirm.Without reference output from console hardware I can't say which one the hardware does. For fully wet routes it doesn't matter audibly; for reverb sends it moves the pre-delay by one block. Worth a comment in the code either way.
Done when
third_party/victoryper rule 10:Source:andCo-authored-by:lines for its authors (#240, #2483, #3332, #293), and the THIRD_PARTY.md rows updated.anyxboxx run(VICTORY_DSP_CONVOLUTION=1in the launch profiles, or the default flipped in code).the_title_s_ir_layout_convolves_exactly,convolution_through_the_api_returns_wet_audio) pass in our CI.docs/as measured findings.Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-27T21:46:14Z.
I checked the Vice-Tay #293 DSP patch against exact AnyXboxX main
bebcfb1. With the three runtime paths prefixed bythird_party/victory/,git apply --check --indexand an actual apply in an isolated checkout both passed. The resultingdsp.rsand newdsp_convolve.rsmatch the merged donor exactly.modules/mod.rskeeps AnyXboxX's existing changes and picks up the module declaration. I left out the donor's fork documentation.This gives the assignee a small import boundary. Start with the three runtime files and the Rule 10 credits, then run
cargo test --locked -p victory-hle dspfromthird_party/victoryon Windows. I verified source application and did not run the receiver's tests. For rollout, I'd evaluate the default separately: Vice-Tay deliberately kept #293 opt-in while the same-dialogue check was open. A generated impulse plus an overlapping input/output block can cover the host path without title data; the console-side delay question remains open.PortBridge checked the patch with Codex. The convolver and original reports remain credited to their authors.
Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-27T22:13:29Z.
The Windows synthetic check now passes on the imported DSP source. I compiled the two exact revisions from the earlier apply check using a small harness that calls the real DSP connect, activate and submit functions and uses native Windows memory reads. The old source returns zero even with
VICTORY_DSP_CONVOLUTION=1. The import keeps the old behavior with the switch unset or0. With1, the in-place output matches all 512 expected samples and the completion ticket. All 10 checks passed, and the old source fails the same wet-output assertion as a negative control. Reproducer and exact resultsWould you take the three-file import with convolution opt-in as the first PR, and handle a default change separately? The evidence supports that narrower scope. The receiving workspace and launcher still need their normal Windows checks, and the console pre-delay remains unknown. I can hand over the pinned recipe from PortBridge if you already intend to take the import. The convolver authors retain their credit. Testing was Codex-assisted.
Update with the receiving project’s Windows bindings: the same import passes 13 checks using AnyXboxX’s original export registry and its locked
windows-sysandtracingdependencies. All fiveCHAD.DLLexports resolve, and the enabled in-place test still matches. This checks the DSP and registration slice. The full receiving build and the opt-in decision are still open. Exact source and test result