[PR #1144] [MERGED] runtime: xapu.dll as a command queue with the console's layouts (RT-XAPU-CONNECT-LAYOUTS) #1179

Closed
opened 2026-11-26 20:20:21 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1144
Author: @nicoco23
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: xapu-connect-layouts


📝 Commits (4)

📊 Changes

6 files changed (+610 additions, -160 deletions)

View changed files

📝 docs/audio_hal_exe_calls.md (+18 -0)
📝 runtime/CMakeLists.txt (+4 -1)
📝 runtime/shims/xapu_chad.cpp (+5 -118)
➕ runtime/shims/xapu_queue.cpp (+361 -0)
📝 runtime/test/xapu_chad_test.cpp (+221 -40)
📝 scripts/build_runtime.ps1 (+1 -1)

📄 Description

Claimed in the coordination issue as: RT-XAPU-CONNECT-LAYOUTS

xapu.dll moves out of xapu_chad.cpp into xapu.cpp and becomes a command queue with the console's layouts: the XApuConnect input and output, 24-byte command ids, 0x50-byte results, the 0x8AC81000+ error codes, and the frame count of an Opus packet's TOC byte (RFC 6716 section 3.1). The audio stays silent, nothing is decoded. chad.dll is unchanged.

This replaces the xapu half of #277 (piyonchu's draft, which needs a rebase); the chad half stays as it is. Credit to piyonchu for the original shim.

The layouts are facts from Marvisak/VIctory (GPL-3.0-or-later, crates/victory-hle/src/modules/apu.rs at ffe310e), no code is copied. See docs/related_projects.md.

Tested: xapu_chad_test via ctest on Windows 11, 100% success. No game files, no GPU.
AI-assisted: yes (Claude Code).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1144 **Author:** [@nicoco23](https://github.com/nicoco23) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `xapu-connect-layouts` --- ### 📝 Commits (4) - [`9c6cbbc`](https://github.com/ubiquitarianism/leonida/commit/9c6cbbcf12757aa012da8064a6750d482826668a) runtime: xapu.dll as a command queue with the console's layouts, audio silent - [`370e52b`](https://github.com/ubiquitarianism/leonida/commit/370e52b8cbc7dadfaecd3bf00e6fdc919d4244dc) Merge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts - [`19559fe`](https://github.com/ubiquitarianism/leonida/commit/19559fec600f6e2899a5e96d6a44976ab07f3d65) scripts: build xapu.cpp in the cl.exe fallback (review of #1144) - [`6ee7ef8`](https://github.com/ubiquitarianism/leonida/commit/6ee7ef89b948a9942f5de0b61d1f6756f477d6d5) Merge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts ### 📊 Changes **6 files changed** (+610 additions, -160 deletions) <details> <summary>View changed files</summary> 📝 `docs/audio_hal_exe_calls.md` (+18 -0) 📝 `runtime/CMakeLists.txt` (+4 -1) 📝 `runtime/shims/xapu_chad.cpp` (+5 -118) ➕ `runtime/shims/xapu_queue.cpp` (+361 -0) 📝 `runtime/test/xapu_chad_test.cpp` (+221 -40) 📝 `scripts/build_runtime.ps1` (+1 -1) </details> ### 📄 Description Claimed in the coordination issue as: RT-XAPU-CONNECT-LAYOUTS xapu.dll moves out of xapu_chad.cpp into xapu.cpp and becomes a command queue with the console's layouts: the XApuConnect input and output, 24-byte command ids, 0x50-byte results, the 0x8AC81000+ error codes, and the frame count of an Opus packet's TOC byte (RFC 6716 section 3.1). The audio stays silent, nothing is decoded. chad.dll is unchanged. This replaces the xapu half of #277 (piyonchu's draft, which needs a rebase); the chad half stays as it is. Credit to piyonchu for the original shim. The layouts are facts from Marvisak/VIctory (GPL-3.0-or-later, crates/victory-hle/src/modules/apu.rs at ffe310e), no code is copied. See docs/related_projects.md. Tested: xapu_chad_test via ctest on Windows 11, 100% success. No game files, no GPU. AI-assisted: yes (Claude Code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:21 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1179
No description provided.