upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/opus_decoder/src
diff options
context:
space:
mode:
authorNico <nicolas.tassin23@gmail.com>2026-11-24 19:22:58 +0100
committerNico <nicolas.tassin23@gmail.com>2026-11-24 19:22:58 +0100
commit9c6cbbcf12757aa012da8064a6750d482826668a (patch)
tree22448438fa7941d60775afd637277d4cc0d2b65d /runtime/opus_decoder/src
parent3aa975421d470b76da1aa986a91282c59e20d642 (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/src')
0 files changed, 0 insertions, 0 deletions