<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/xapu_chad.cpp, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T11:09:55+00:00</updated>
<entry>
<title>Merge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts</title>
<updated>2026-11-25T11:09:55+00:00</updated>
<author>
<name>Nico</name>
<email>nicolas.tassin23@gmail.com</email>
</author>
<published>2026-11-25T11:09:55+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=6ee7ef89b948a9942f5de0b61d1f6756f477d6d5'/>
<id>urn:sha1:6ee7ef89b948a9942f5de0b61d1f6756f477d6d5</id>
<content type='text'>
main added its own runtime/shims/xapu.cpp: the boot stack's earlier xapu.dll stub, which gta6rt does not link and
xapu_test checks. This branch's xapu.dll command queue moves to runtime/shims/xapu_queue.cpp so both stay: gta6rt,
xapu_chad_test, the cl.exe fallback list in scripts/build_runtime.ps1 and the references in xapu_chad.cpp,
xapu_chad_test.cpp and docs/audio_hal_exe_calls.md name the new file; main's xapu.cpp and xapu_test are unchanged.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_01GnGkjYHUWx92TkwvwCnAMe
</content>
</entry>
<entry>
<title>runtime: xapu.dll as a command queue with the console's layouts, audio silent</title>
<updated>2026-11-24T18:22:58+00:00</updated>
<author>
<name>Nico</name>
<email>nicolas.tassin23@gmail.com</email>
</author>
<published>2026-11-24T18:22:58+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=9c6cbbcf12757aa012da8064a6750d482826668a'/>
<id>urn:sha1:9c6cbbcf12757aa012da8064a6750d482826668a</id>
<content type='text'>
xapu.dll moves out of xapu_chad.cpp into xapu.cpp; chad.dll is unchanged.

The signatures, structure layouts, command kinds, option bits and error
codes come from Marvisak/VIctory (GPL-3.0-or-later,
crates/victory-hle/src/modules/apu.rs at ffe310e), which runs the retail
executable through these calls. Only facts are used, no code
(docs/related_projects.md). They settle what the old header left open:
XApuConnect's first argument is an input (processing kind, streams,
commands per stream, memory bytes, frames per output, options), and the
dword the title reads at +0x34 of a result is its output byte count.

- XApuConnect validates the input, allocates the memory the title asks
  for (zeroed) and, with option 0x8, an auto-reset result event; any
  processing kind but Opus decoding is E_NOTIMPL.
- Each accepted command gives one result in command order, with the
  console's error codes; an unknown kind, a stream out of range or a full
  stream is refused with no result.
- A process result carries the frame count of the Opus packet's TOC byte
  (RFC 6716, section 3.1), clipped from first_frame, to frame_count and to
  the output, and zeros in the output. Nothing is decoded.
- xapu_chad_test covers result order, the full queue, the error codes,
  frame counts, silence and the event.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>xapu/chad shims: XDspActivate writes its outputs, open and close commands give results, XApuConnect leaves the title's block alone</title>
<updated>2026-11-23T17:37:42+00:00</updated>
<author>
<name>Jadiac</name>
<email>jadiac@web.de</email>
</author>
<published>2026-11-23T17:37:42+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=eaeee26b391adadc05e06de750444a5df92267e2'/>
<id>urn:sha1:eaeee26b391adadc05e06de750444a5df92267e2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs/runtime_imports.md: move our paragraph into the RT-5 section so it merges with main's xmem notes</title>
<updated>2026-11-23T16:59:12+00:00</updated>
<author>
<name>Jadiac</name>
<email>jadiac@web.de</email>
</author>
<published>2026-11-23T16:59:12+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=28f013c2ffd54d9b9465ada3f1ea0ad52bac750e'/>
<id>urn:sha1:28f013c2ffd54d9b9465ada3f1ea0ad52bac750e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xapu/chad: check the two connection allocations and return E_OUTOFMEMORY</title>
<updated>2026-11-23T16:10:55+00:00</updated>
<author>
<name>Jadiac</name>
<email>jadiac@web.de</email>
</author>
<published>2026-11-23T16:10:55+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b95401617945333ca3476e988ed91d53f4728c86'/>
<id>urn:sha1:b95401617945333ca3476e988ed91d53f4728c86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime: xapu.dll and chad.dll shims, connections that succeed with an empty result queue</title>
<updated>2026-11-23T15:45:35+00:00</updated>
<author>
<name>Jadiac</name>
<email>jadiac@web.de</email>
</author>
<published>2026-11-23T15:30:34+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=e6515ea41d8ead3a7ece1307efa5002d8dd647fe'/>
<id>urn:sha1:e6515ea41d8ead3a7ece1307efa5002d8dd647fe</id>
<content type='text'>
The executable's ten APU and audio DSP imports (one call site each, four for XApuEnqueueCommand) now bind to runtime/shims/xapu_chad.cpp instead of the unimplemented thunk. Both connects return a handle; the APU connect also returns a zeroed shared buffer. Commands are accepted and dropped, the result count is 0 and dequeuing fails. xapu_chad_test calls all ten in the call-site shapes.
</content>
</entry>
</feed>
