refactor(audio): drop duplicated stub exports from libSceAudio #241
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/241"
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 adriadam10 on 2026-10-01T17:59:00Z.
What
libSceAudioonly exportedNotImplementedstubs ofsceAudioOutInit,Open,Output,SetVolumeandClose, whichlibSceAudioOutalready implements (src/AudioOut.cpp). As suggested in review, itsExport.cppnow contains onlyAPS5_DUMMY_FUN, likelibkernel_sys, so there are no duplicate exports between the libraries and titles bind to the implementation inlibSceAudioOut.No title found that loads
libSceAudiowithoutlibSceAudioOut.Tested
Linux (CachyOS, GCC): Release build,
ninja libs(NID patching OK) and fullctestpass.nm -DonlibSceAudio.prxshows onlyDummyFunction_nid_no_patch. Windows only through CI. No title tested.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-01T17:59:25Z.
Progress report (
c00bc19→e3fa37f)📈 System libraries: 78.32% (+0.13%, -5 removed functions)
🗑️ 5 removed
sceAudioOutClosesceAudioOutInitsceAudioOutOpensceAudioOutOutputsceAudioOutSetVolumeImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-01T19:17:15Z.
Same question as on #228 applies here: no title found that loads libSceAudio without libSceAudioOut, it came from the progress map. If the answer there is to drop the copy, I'll close this one too (or replace it with removing the duplicated stubs, whichever you prefer).
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-02T07:14:56Z.
Yes, if no game is found that requires this library's implementation, then duplicate escorts (found in other libraries) should be removed. If this leaves no functions, you can follow the example of libkernel_sys.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-02T07:17:21Z.
If you have this situation in your other PRs, do the same there.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-02T07:17:29Z.
Done:
libSceAudio/Export.cppis nowAPS5_DUMMY_FUNonly, likelibkernel_sys; the shared cmake is gone.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-02T07:25:37Z.
Done, in all of them:
libSceAudiodec):libSceAudiodec.nativewas built from the same sources. The shared cmake is gone, and itsExport.cppis nowAPS5_DUMMY_FUNonly, because all six of its exports are implemented inlibSceAudiodec.mainwithout it, and itsguest_ajmtest is registered inlibSceAjm.nativeand links against it.libSceNgs2/Export.cppis nowAPS5_DUMMY_FUNonly. All 25 of its stubs are exported bylibSceNgs2.native.Each PR has a comment with the change. No other open PR of mine exports a function that another library also exports (also checked #227 and #243).