Commit Graph

6 Commits

Author SHA1 Message Date
9f087c96b9 ci: link synchronization for the XMA2 ABI smoke test
Adapted from LeonidaReforge/Leonida#23 (e932888842afccb38695cab4ce6c4ff6ca8b0dd7). AI-assisted (Codex).
2026-11-24 19:40:05 +03:00
0fe9c0bdfb acphal: recover SHAPE allocation and preserve XMA stream state 2026-11-24 05:27:55 -03:00
e02ec36bf3 acphal: synchronize XMA context words and bound the output ring 2026-11-24 04:29:18 -03:00
a0327ee1af runtime: target the MSVC ABI for the Rust XMA2 decoder 2026-11-24 04:03:39 -03:00
cfcedb58e2 acphal: decode XMA contexts with runtime/xma_decoder when cargo is available
Replace the hand-written C++ XMA2/WMA Pro decoder with the Rust decoder
already on main. runtime/CMakeLists.txt builds it at configure time when
cargo is on PATH and links it into gta6rt and acphal_test
(LEONIDA_HAVE_XMA2_DECODER); without cargo, if that build fails, or with
the cl.exe fallback, XMA voices output silence for each packet's frame
count.

The ring engine decodes whole 2048-byte packets: the read offset and the
loop points are used per packet, so a loop plays its end packet in full
and restarts with a fresh decoder at the packet holding the loop start.
The C ABI gains leonida_xma2_decoder_create_hardware (no first-frame drop,
no 64-sample start skip), since the context carries its own skip.

Tested: acphal_test 129 checks (silence) and 125 checks (Rust decoder,
gnullvm build), 0 failures, 3 runs each, clang 23 / mingw x64; cargo fmt
and cargo test (gnullvm); pytest build/docs suites 204 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:53:37 -03:00
8714c3503b [RT-197] Add the XMA2 decoder C ABI boundary (#3441)
Squash-merged after diff review of PR #3441
2026-11-23 09:54:45 -06:00