Commit Graph
8 Commits
Author SHA1 Message Date
hypermistandClaude Opus 5.5 2f69cc6c24 Merge remote-tracking branch 'upstream/main' into feat/opus-dec-float-priority
Clean merge; no conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 12:06:39 +13:00
p3nicillin 721a2e4b73 fix(opus): decode at the requested rate with bundled libopus 2026-10-22 23:09:24 +01: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
boykopovar d109d51f43 fix(opus): restore decoder validation errors and precedence 2026-10-21 21:54:18 +03:00
boykopovar 57ee1e839e fix(opuscelt): verify decoder abi and const context inputs 2026-10-21 21:49:30 +03:00
juanpimg 2f0ed638dc feat(prx): declare the missing PS5 3.20 system exports
AnyPS5 resolves a title's imports by NID, so a title that imports a system
function no library provides fails to load with an unresolved import. The
PS5 3.20 export inventory lists 193 such exports across 37 PS5 system
libraries AnyPS5 implements but does not provide.

Declare them as throwing stubs so those titles load and reach their next
blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0;
none of them implements the function. Declarations with a credible
prototype use it and cite the source with a pinned commit, and the rest
are declared without parameters, which resolves the import without making
an ABI claim. The technical-debt files record the limitation per library.

libSceMbus and libSceSystemService are left out because pull request #7821
declares them. libSceAgc is left out because its exports are versioned, so
the 3.20 NID names a different symbol from the one AnyPS5 ships.
libSceAvPlayer.native is left out because it compiles libSceAvPlayer's
Export.cpp.

Names and NIDs come from the PS5 3.20 export inventory at
https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
2026-10-19 23:16:55 +02:00
jacob6769andClaude Opus 5.5 caee9a8bef feat(libSceOpusCeltDec): decode CELT packets with the libSceOpusDec decoder
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 20:22:47 +09:00
Adrià FranchandClaude 342a8c4590 docs(debt): move library entries to one file per library
Co-Authored-By: Claude <[email protected]>
2026-10-12 20:38:29 +02:00