Repository navigation
feat(opus): implement 48 kHz libSceOpusDec - #1823
Conversation
|
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.
|
ea3be2b to
c641ea6
Compare
c641ea6 to
bb3ac21
Compare
Decode raw mono and stereo packets for missing system-library imports. Add behavioral tests and document unverified firmware semantics.
bb3ac21 to
4c7e823
Compare
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
|
Checked against the cited DECODING.md (signatures, 640-byte state, byte capacity rounded down to even): matches. Local build + ctest on top of main: |
Progress report (d70b899 → 4c7e823)📈 System libraries: 84.72% (+0.03%, +6 implemented functions) ✅ 6 implemented
|
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 functions