Commit Graph
3 Commits
Author SHA1 Message Date
hypermistandClaude Opus 5.5 daf9f937cb refactor(libSceOpusDec): declare decode variants in the library headers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 12:06:39 +13:00
hypermistandClaude Opus 5.5 aff42e2c4b fix(opus): throw for finite decode timeouts
The host decodes synchronously, so only the infinite timeout that
sceOpusDecDecode itself passes can be honoured. Other timeouts still
return the argument errors and then report the path as unimplemented,
because on the console the result depends on whether the AJM batch
finishes within the timeout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SNqSvnFwRBz3D76n476yw6
2026-10-23 13:49:28 +13:00
hypermistandClaude Opus 5.5 665f2f7f12 feat(opus): decode to float and with a priority in libSceOpusDec and libSceOpusCeltDec
Both modules route every decode export through one worker. Its checks
run in this order: state, packet, size, PCM pointer, capacity, then a
priority outside 20..100 (+0xA), then the state check (+1). Decode passes
priority 40.

The float exports decode 16-bit PCM into capacity / 4 * 2 bytes of the
caller's buffer and widen each sample in place, dividing positive
samples by 32767 and the rest by 32768. They return the float byte count.

The OpusDec *AndTimeout exports take a timeout for the AJM batch wait and
a pointer that receives the batch ID only when that wait fails. The host
decode is synchronous, so neither is used; the debt entry records this.

Read from libSceOpusDec.sprx and libSceOpusCeltDec.sprx, firmware 12.00,
not measured on a console.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SNqSvnFwRBz3D76n476yw6
2026-10-23 01:40:46 +13:00