feat(opus): implement 48 kHz libSceOpusDec #1823
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1823"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-08T20:35:17Z.
What
Add the six
libSceOpusDecexports required by ProsperoRadio in #1578. Reuse FFmpeg for persistent 48 kHz mono/stereo decoders with interleaved signed-16 PCM. Decode returns bytes and checks byte capacity before consuming a packet.The ABI and 640-byte opaque state size follow public PS5 decoder research. Other sample rates, packet loss concealment and unsupported lifecycle/error paths throw. Firmware error codes and exact PCM equivalence remain unverified and are recorded in TechnicalDebt.
Tested
Linux x86-64.
guest_opus_decpasses real consecutive packets, byte counts, amplitude, mono output, decoder persistence, independent contexts, capacity canaries and lifecycle checks. Standalone ASan/UBSan passes. Existing AJM, JPEG and PNG decoder tests also pass.A local consumer compiled for FreeBSD against ps5-payload-sdk v0.43 headers passes through the patched NID exports. It checks 32-bit contexts, PCM byte counts and output guards. SDK tooling is outside the repository. No PS5 or Windows execution was performed.
The released ProsperoRadio 01.000.010 binary previously stopped at missing
libSceOpusDec.prx. With this module it reaches the next missing library,libSceOpusCeltDec.prx. All six OpusDec imports resolve. This does not make the title run.Independent code review passes both standards and spec, with no actionable findings.
Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T20:42:43Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL244docs/dev/TechnicalDebt.mdL244Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:44:58Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
bb3ac21c, merged ontomaind70b8998in one build with 38 other PRs that had no Windows run. The current head4c7e8232is a rebase with the same Opus files.guest_opus_dec. It didn't report skipping a case.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:12:00Z.
Checked against the cited DECODING.md (signatures, 640-byte state, byte capacity rounded down to even): matches. Local build + ctest on top of main:
guest_opus_decpasses (518/518). Decoded the test packets with libopus independently: 960 samples each, peaks 938/1041/1035/1035, consistent with the test bounds. Unverified parameters throw and are recorded in TechnicalDebt. Windows result from @popcoder565 noted. Merging once CI is green.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T21:15:20Z.
Progress report (
d70b899→4c7e823)📈 System libraries: 84.72% (+0.03%, +6 implemented functions)
✅ 6 implemented
sceOpusDecCreateExsceOpusDecDecodesceOpusDecDestroysceOpusDecGetSizesceOpusDecInitializesceOpusDecTerminate