Honor XMA loop-end subframes across linked packets #1999
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1999"
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 ubiquitarianism/leonida. Originally posted by lgr123 on 2026-11-25T17:54:58Z.
Claimed as RT-XMA-LOOP-END-SUBFRAME.
A generated two-packet mono loop wrote 12 decoded blocks for every end subframe. Selectable end subframes should produce 9, 10, 11 and 12 blocks. At subframe 0 the extra 384 samples extend a repeat by 8 ms at 48 kHz. A separate loop-end frame split across linked packets wrote 8 blocks instead of 10 with the pinned decoder.
Respect the frame bit offsets and 128-sample end boundary on repeating passes. Account for frame PCM returned by a following linked packet and rewind to the selected frame. Keep the normal end-of-loop pass and packet-based fallback. A decoder rejection while checking a continuation still resets the codec before the rewind.
Reviewer check
Build and run the Windows CMake target
acphal_testwith the pinned Rust XMA decoder. All input is generated by the test. It exercises subframes 0–3, multiple frames per packet, linked continuations including a split prefix, two input buffers, decoder rejection and PCM order.Tested
git diff --checkpassed on public mainb9320a1.GPUs tested: n/a.
AI-assisted: yes.
Checklist
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T09:49:34Z.
Red/green: the PR's test fails on main and passes with this PR (checked by OreoFR).
Runtime batch of 20 PRs tested by OreoFR (full build, ctest without the game, Python suite, translator): same results as main
09c153948, RTX 4070 Laptop / Windows 11.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:57:41Z.
Verified by OreoFR
09c153948+ PR head2624c78e4; integration package 1 of 6 (20 PRs, merged without conflict)AI-assisted (Claude Code, Claude Opus 5.5).