XAudio2: write decoded XMA samples directly into interleaved PCM #526
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!526
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-526"
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?
@wileyGray on GitHub · 2026-11-24 01:20 UTC · original
wileyGray:codex/xma-pcm-output→main· +37 −41 · 1 files · 1 commits · draftXAudio2 requests PCM16 from the XMA decoder. The decoder previously popped each sample from a channel queue into a float buffer, then allocated a second buffer and converted the entire result. Related to #459.
What is in it
Tested
cargo build --locked --workspace --offlinepassed.cargo test --workspace -- --test-threads=4oncc09012reported 680 passed, 0 failed, 41 ignored, including the end-to-end test title. Two GPU tests reported SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.508a0c7andcc09012.decode_buffer_i16(packet_data, true)call. Built both module versions withrustc --edition=2021 -O --test, pinned to the same logical CPU, warmed the decoder, then alternated baseline and patch order over 15 runs of 350 decodes per fixture. Inputs and outputs usedstd::hint::black_box.Regression run
Retail regression evidence needed. A tester with any unpacked Xbox Series title can supply this pair; the title need not use XMA. In clean checkouts of upstream
508a0c74d7c0and PR headcc09012b7e0b, run the following in each checkout, using the same game folder, machine and duration:Please attach the two generated
xcl-smokeblocks to this PR, labeled main and PR, with the title version. Only the text output is needed. I can then update this section with the credited results.For comparison, the repository's synthetic title passed all 50 checks on both commits with
xcl run <game> -- --hello(exit 0). Unmodifiedscripts/smoke.ps1launched the same fixture without its required--helloargument and recorded exit 1, one crash and zero device removals on both commits.Not tested
AI use
@DTsordas on GitHub · 2026-11-24 09:44 UTC · original
Test report for #526 at
cc09012: AMD RDNA4 (native wave64), WindowsTested
cargo build --workspaceandcargo test --workspace -- --test-threads=4atcc09012: 680 passed, 0 failed, 41 ignored, 0 SKIPPED. The two tests skipped on the RTX 4080 for lack of wave64 (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware) ran and passed here.hle::xma2tests pass, including the extendedsurround_5_1_interleaves_three_streams_and_isolates_channelsanddecodes_xma2_and_xma1_bitstreams_matching_ffmpeg.cc09012merged into current main077ce40(no conflicts):cargo test -p xcl --lib hle::xma2::7 passed, 0 failed.Not tested
xcl-smokeblocks; the PR check still needs them.AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@Toons29 on GitHub · 2026-11-25 02:57 UTC · original
Regression run of
cc09012bon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 90 % of
main's frames, 99 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@DavidM1911 on GitHub · 2026-11-25 13:43 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.