fix: log why an audio DSP stream renders silence (rule 3) #590
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/590"
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 KainanP on 2026-11-28T16:52:13Z.
Refs #534 (the "Nothing is logged when it happens" part; rule 3).
The convolver from #534 is already on main: #563 brought Vice-Tay
4f15f09e, which includes Vice-Tay #293 (dsp_convolve.rs, opt-inVICTORY_DSP_CONVOLUTION=1). Without the switch, though,XDspSubmitCommandstill writes silence and returnsS_OK, and nothing in the log says so. AGENTS.md rule 3 asks for a log there.Change (
third_party/victory/crates/victory-hle/src/modules/dsp.rsonly):Fallbackreason at activation. There are three:VICTORY_DSP_CONVOLUTIONisn't1;A fourth reason comes at submit time: a convolution block whose input can't be read.
warn!that names it and says the command still reportsS_OK. Once per process keeps the 47-commands-a-second path quiet.debug!logs and the tests read.Tests (
cargo test -p victory-hle --lib dsp, fromthird_party/victory):every_silent_stream_has_a_logged_reason(new): the reason for each kind and switch state, and that a reason is recorded once.convolution_stream_as_the_title_drives_itnow checks the stream's reason:ConvolutionOffwith the switch unset, none when the switch is on (that IR is accepted), andTransformfor a kind-2 stream. Neither test compiles on main.VICTORY_DSP_CONVOLUTIONunset, and 11 passed with it set to1.cargo test -p victory-hle --lib: 259 passed, 1 failed. The failure islifecycle::tests::direct_close_suspends_and_exits, which fails the same way on main and isn't in a file this PR touches.ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest -n auto): 1990 passed (RTX 4060 Laptop, run on main66b92fbewith this PR and the two companion PRs from the same triage applied together).AI use: written and tested by Claude Code (Claude Opus 5.5) for KainanP. The tests were run in both switch states.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.