diff options
| author | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 04:03:39 -0300 |
|---|---|---|
| committer | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 04:03:39 -0300 |
| commit | a0327ee1af5bb44abfd1327d00167da526d1ac70 (patch) | |
| tree | 366afeb57a856a601c3ddb780288f7c7172409b9 /runtime/xma_decoder | |
| parent | a99a3fb6ad419bf7f0a255d8b31fbd8112da1b39 (diff) | |
runtime: target the MSVC ABI for the Rust XMA2 decoder
Diffstat (limited to 'runtime/xma_decoder')
| -rw-r--r-- | runtime/xma_decoder/README.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/xma_decoder/README.md b/runtime/xma_decoder/README.md index 5ef66abbc..3cda1843a 100644 --- a/runtime/xma_decoder/README.md +++ b/runtime/xma_decoder/README.md | |||
| @@ -20,6 +20,8 @@ The C++ smoke test is run by the xma2-decoder workflow with MSVC. It links ws2_3 | |||
| 20 | 20 | ||
| 21 | ## Use in the runtime | 21 | ## Use in the runtime |
| 22 | 22 | ||
| 23 | `runtime/CMakeLists.txt` builds this crate at configure time when `cargo` is on `PATH` (the first build fetches the pinned `xma` git dependency) and links it into `gta6rt` and `acphal_test` with `LEONIDA_HAVE_XMA2_DECODER` defined. `runtime/shims/acphal.cpp` calls `leonida_xma2_decoder_create_hardware` once per XMA context and decodes whole 2048-byte packets, so loop points are rounded to packets. | 23 | `runtime/CMakeLists.txt` builds this crate for `x86_64-pc-windows-msvc` at configure time when `cargo` is on `PATH` and links it into `gta6rt` and `acphal_test` with `LEONIDA_HAVE_XMA2_DECODER` defined. The first build fetches the pinned `xma` git dependency. Set `CARGO_NET_OFFLINE=true` for a configure that uses only the local Cargo cache. |
| 24 | |||
| 25 | `runtime/shims/acphal.cpp` uses `leonida_xma2_decoder_create_hardware` and decodes whole 2048-byte packets, so loop points are rounded to packets. | ||
| 24 | 26 | ||
| 25 | Without `cargo`, when that build fails, or with the cl.exe fallback of `scripts/build_runtime.ps1`, XMA voices output silence. | 27 | Without `cargo`, when that build fails, or with the cl.exe fallback of `scripts/build_runtime.ps1`, XMA voices output silence. |