diff options
| author | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 04:29:18 -0300 |
|---|---|---|
| committer | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 04:29:18 -0300 |
| commit | e02ec36bf315de960a9db244e971bf00cfd66406 (patch) | |
| tree | 629cb4a3488a855fb51d943ce8420cb263553d9d /runtime/xma_decoder | |
| parent | a0327ee1af5bb44abfd1327d00167da526d1ac70 (diff) | |
acphal: synchronize XMA context words and bound the output ring
Diffstat (limited to 'runtime/xma_decoder')
| -rw-r--r-- | runtime/xma_decoder/README.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/xma_decoder/README.md b/runtime/xma_decoder/README.md index 3cda1843a..44eb4288a 100644 --- a/runtime/xma_decoder/README.md +++ b/runtime/xma_decoder/README.md | |||
| @@ -6,8 +6,6 @@ Each decoder handle serializes decode calls. The returned PCM block owns its sam | |||
| 6 | 6 | ||
| 7 | The tests build packets in memory; they do not open or contain audio fixtures. The synthetic C++ smoke test verifies the exported ABI and ownership boundary. | 7 | The tests build packets in memory; they do not open or contain audio fixtures. The synthetic C++ smoke test verifies the exported ABI and ownership boundary. |
| 8 | 8 | ||
| 9 | This PR adds the decoder boundary only; the Windows XAudio2 engine/source-voice adapter is a follow-up stage. | ||
| 10 | |||
| 11 | Run: | 9 | Run: |
| 12 | 10 | ||
| 13 | ```powershell | 11 | ```powershell |
| @@ -22,6 +20,6 @@ The C++ smoke test is run by the xma2-decoder workflow with MSVC. It links ws2_3 | |||
| 22 | 20 | ||
| 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. | 21 | `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 | 22 | ||
| 25 | `runtime/shims/acphal.cpp` uses `leonida_xma2_decoder_create_hardware` and decodes whole 2048-byte packets, so loop points are rounded to packets. | 23 | `runtime/shims/acphal.cpp` uses `leonida_xma2_decoder_create_hardware` and decodes whole 2048-byte packets, so loop points are rounded to packets. The shim creates a fresh decoder after a loop rewind or a decoder error. |
| 26 | 24 | ||
| 27 | Without `cargo`, when that build fails, or with the cl.exe fallback of `scripts/build_runtime.ps1`, XMA voices output silence. | 25 | Without `cargo`, when that build fails, or with the cl.exe fallback of `scripts/build_runtime.ps1`, XMA voices output silence. |