Keep XMA decoding when its worker fails to start #4801
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4801
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4800"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 09:15 UTC · original
andrewpozdnakov7-jpg:fix/xma-worker-start-fallback→main· +50 −37 · 1 files · 1 commits · draftMain at
5fabb46has five Clippy errors covered by #4708.What it changes
If the XMA decoder thread fails to start, the code currently stores the caller's thread handle. Later decoder wakeups go to that thread, which has no decoder loop.
Store whether the decoder worker started. If creation fails, report the error and fill the requested voice inline when it is enabled or when its read pointer advances. The same voice-filling function serves both paths.
How it was tested
mainandb97f584. The same three requests for voices 2, 4 and 2 resulted in no fills onmainand fills for 2, 4 and 2 after the change.cargo check --locked -p victory-hle --jobs 2passed.cargo xtask policy --stagedpassed for the one changed file.Checked for overlap
audio.rs. #4082 reuses decoding scratch space and #4275 fixes packet starts and sample skips.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.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.