diff options
| author | Nico <nicolas.tassin23@gmail.com> | 2026-11-24 19:22:58 +0100 |
|---|---|---|
| committer | Nico <nicolas.tassin23@gmail.com> | 2026-11-24 19:22:58 +0100 |
| commit | 9c6cbbcf12757aa012da8064a6750d482826668a (patch) | |
| tree | 22448438fa7941d60775afd637277d4cc0d2b65d /runtime/opus_decoder | |
| parent | 3aa975421d470b76da1aa986a91282c59e20d642 (diff) | |
runtime: xapu.dll as a command queue with the console's layouts, audio silent
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 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder')
0 files changed, 0 insertions, 0 deletions