feat(prx): implement libSceOpusCeltDec module #3913

Closed
Silver148 wants to merge 1 commit from upstream-pr/3913 into main
Silver148 commented 2026-10-11 19:06:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Silver148 on 2026-10-11T19:06:33Z.


What

  • Implements the missing libSceOpusCeltDec module (Export.cpp) to handle CELT-only Opus packet decoding.
  • Utilizes FFmpeg (libavcodec) backend, mirroring the architecture used in libSceOpusDec.
  • Added strict checks to ensure incoming packets conform to the CELT-only configuration requirement.
  • Updates CMakeLists.txt configurations as needed.

Tested

  • Verified local compilation and test suites pass successfully :D.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4821563762 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3913). Originally posted by [Silver148](https://github.com/Silver148) on 2026-10-11T19:06:33Z. --- ### What - Implements the missing `libSceOpusCeltDec` module (`Export.cpp`) to handle CELT-only Opus packet decoding. - Utilizes FFmpeg (`libavcodec`) backend, mirroring the architecture used in `libSceOpusDec`. - Added strict checks to ensure incoming packets conform to the CELT-only configuration requirement. - Updates CMakeLists.txt configurations as needed. ### Tested - Verified local compilation and test suites pass successfully :D. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 19:31:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T19:31:17Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#3626 sceOpusCeltDecCreateEx
sceOpusCeltDecDecode
sceOpusCeltDecDestroy
sceOpusCeltDecGetSize
sceOpusCeltDecInitialize
sceOpusCeltDecTerminate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6112858046 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3913#issuecomment-6112858046). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T19:31:17Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3626 | | `sceOpusCeltDecCreateEx`<br>`sceOpusCeltDecDecode`<br>`sceOpusCeltDecDestroy`<br>`sceOpusCeltDecGetSize`<br>`sceOpusCeltDecInitialize`<br>`sceOpusCeltDecTerminate` | |
oneandonlydean commented 2026-10-11 23:59:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:59:30Z.


Closing: no title is shown to reach these six OpusCeltDec exports on main (same as #3626, which carries the same exports). Reopen with the title ID and the log line when one stops there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115355229 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3913#issuecomment-6115355229). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:59:30Z. --- Closing: no title is shown to reach these six OpusCeltDec exports on main (same as #3626, which carries the same exports). Reopen with the title ID and the log line when one stops there.
Silver148 commented 2026-10-12 05:20:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Silver148 on 2026-10-12T05:20:20Z.


Hi @oneandonlydean!

Following up on this, homebrew title ProsperoRadio (PPSA99001) from issue #1578 requires the Opus decoder module at startup and fails with:

Failed to load module: ...\Libs\libSceOpusDec.prx (unresolved Opus/CELT imports)

Could you please reopen this PR so the module exports can be merged? Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118247633 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3913#issuecomment-6118247633). Originally posted by [Silver148](https://github.com/Silver148) on 2026-10-12T05:20:20Z. --- Hi @oneandonlydean! Following up on this, homebrew title ProsperoRadio (PPSA99001) from issue #1578 requires the Opus decoder module at startup and fails with: Failed to load module: ...\Libs\libSceOpusDec.prx (unresolved Opus/CELT imports) Could you please reopen this PR so the module exports can be merged? Thanks!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3913
No description provided.