Files
AnyPS5/docs/dev/debt/libSceAudiodecCpu.md
T
hypermoist c0f8e85f18 feat(audiodeccpu): reject LPCM frames exceeding module output buffer capacity
Leave Blu-ray LPCM frames that decode to more PCM than the module's
0x43800-byte output buffer capacity explicitly unsupported, and document
the firmware 13.42 wrapping behavior in the technical debt entry.

Assisted-by: Antigravity:gemini-3.8-flash
2026-10-27 19:03:53 +13:00

912 B

libSceAudiodecCpu technical debt

Unknown function info

  • libSceAudiodecCpu codecs - Argument checks and LPCM decode follow firmware 13.60 disassembly, unverified on console. Only 16- and 24-bit Blu-ray stereo LPCM decodes. These throw through NotImplemented_nid_no_patch: non-LPCM codecs (separate modules), DVD LPCM, non-stereo layouts (channel tables not recovered), frames larger than the 0x43800-byte input buffer, frames whose decoded PCM exceeds 0x43800 bytes (firmware 13.42 wraps output at 276,480 bytes, repeating earlier samples), an AU shorter than its frame or a PCM buffer smaller than the output (the module copies without checking), and InitDecoder without AU or PCM. Header byte 7 (frame count) and 33-bit timestamp continuation in the param are inferred. The type mask when sceKernelIsCronos returns non-zero is not modelled.