feat(libSceAudioOut): export missing firmware audio output interfaces #8021

Merged
ymatrix1 merged 4 commits from upstream-pr/8021 into main 2026-10-20 10:53:51 +00:00
ymatrix1 commented 2026-10-19 17:56:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ymatrix1 on 2026-10-19T17:56:57Z.


What

Exports 96 firmware libSceAudioOut interfaces that were not declared, in the new core/libs/prx/libSceAudioOut/src/Unimplemented.cpp (added to the library's CMakeLists.txt). Each throws NotImplemented_nid_no_patch; signatures are unknown, so they are declared without parameters and listed under Unknown function info in docs/dev/debt/libSceAudioOut.md.

The list is the intersection of the export table of the console's libSceAudioOut.sprx (function symbols only), the verified NID name database and the functions not yet defined anywhere in the repo. Names that are not in aerolib.orig are left out. All 96 names recompute to their NIDs with tools/nid_names.py.

Tested

python tools/check_conventions.py --base origin/main passes; Unimplemented.cpp compiles with g++ -std=c++20 -fsyntax-only (MinGW, Windows 11). Not run: full build, ctest, any title.

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 under Silent stubs in their library's technical debt file (none added)
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4925145133 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8021). Originally posted by [ymatrix1](https://github.com/ymatrix1) on 2026-10-19T17:56:57Z. --- ### What Exports 96 firmware `libSceAudioOut` interfaces that were not declared, in the new `core/libs/prx/libSceAudioOut/src/Unimplemented.cpp` (added to the library's `CMakeLists.txt`). Each throws `NotImplemented_nid_no_patch`; signatures are unknown, so they are declared without parameters and listed under Unknown function info in `docs/dev/debt/libSceAudioOut.md`. The list is the intersection of the export table of the console's `libSceAudioOut.sprx` (function symbols only), the verified NID name database and the functions not yet defined anywhere in the repo. Names that are not in aerolib.orig are left out. All 96 names recompute to their NIDs with `tools/nid_names.py`. ### Tested `python tools/check_conventions.py --base origin/main` passes; `Unimplemented.cpp` compiles with `g++ -std=c++20 -fsyntax-only` (MinGW, Windows 11). Not run: full build, ctest, any title. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (none added) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 17:57:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T17:57:44Z.


Progress report (8a7ba4b → 29e9ab3)

📉 System libraries: 64.23% (-0.94%, +96 declared functions)

🆕 96 declared as stubs
Library Name
libSceAudioOut sceAudioOut2AllAudioMainToHeadphoneForDiag
libSceAudioOut sceAudioOut2ArbitrationInitialize
libSceAudioOut sceAudioOut2ContextBedWrite
libSceAudioOut sceAudioOut2DebugStateCtrl
libSceAudioOut sceAudioOut2GetAmbisonicsEncodeCoefficients
libSceAudioOut sceAudioOut2GetHrtfIdForCronos
libSceAudioOut sceAudioOut2GetIpcHandle
libSceAudioOut sceAudioOut2GetSystemStateEx
libSceAudioOut sceAudioOut2GetTvCorrectionInfo
libSceAudioOut sceAudioOut2InitializeEx
libSceAudioOut sceAudioOut2LoContextAdvance
libSceAudioOut sceAudioOut2LoContextCreate
libSceAudioOut sceAudioOut2LoContextDestroy
libSceAudioOut sceAudioOut2LoContextGetQueueLevel
libSceAudioOut sceAudioOut2LoContextPush
libSceAudioOut sceAudioOut2LoContextQueryMemory
libSceAudioOut sceAudioOut2LoContextSetAttributes
libSceAudioOut sceAudioOut2LoInit
libSceAudioOut sceAudioOut2LoPortCreate
libSceAudioOut sceAudioOut2LoPortDestroy
libSceAudioOut sceAudioOut2LoPortGetState
libSceAudioOut sceAudioOut2LoPortGetStateEx
libSceAudioOut sceAudioOut2LoPortSetAttributes
libSceAudioOut sceAudioOut2LoTerminate
libSceAudioOut sceAudioOut2MasteringInitEx
libSceAudioOut sceAudioOut2MbusInit
libSceAudioOut sceAudioOut2MbusSetCaesarParam
libSceAudioOut sceAudioOut2MbusSetConnections
libSceAudioOut sceAudioOut2MbusSetDeviceConnections
libSceAudioOut sceAudioOut2MbusSetHeadphoneOutMode
libSceAudioOut sceAudioOut2MbusSetMorpheusParam
libSceAudioOut sceAudioOut2MbusSetPortConnections
libSceAudioOut sceAudioOut2MbusSetPortStatuses
libSceAudioOut sceAudioOut2MbusSetSparkParam
libSceAudioOut sceAudioOut2MbusUserLoginFor3DAudio
libSceAudioOut sceAudioOut2PortCreateEx
libSceAudioOut sceAudioOut2PortRegister
libSceAudioOut sceAudioOut2PortUnregister
libSceAudioOut sceAudioOut2ReportRegisterHandler
libSceAudioOut sceAudioOut2ReportUnregisterHandler
libSceAudioOut sceAudioOut2SetDebugHeadphoneMode
libSceAudioOut sceAudioOut2Terminate
libSceAudioOut sceAudioOut2UserCreateEx
libSceAudioOut sceAudioOutArbitrationInitialize
libSceAudioOut sceAudioOutAssignHRTF
libSceAudioOut sceAudioOutAttachToApplicationByPid
libSceAudioOut sceAudioOutChangeAppModuleState
libSceAudioOut sceAudioOutCustomHrtfIsExist
libSceAudioOut sceAudioOutDetachFromApplicationByPid
libSceAudioOut sceAudioOutEnable3DAudioByArbitration
libSceAudioOut sceAudioOutEnable3DAudioForUser
libSceAudioOut sceAudioOutEnableCinematicVrRotation
libSceAudioOut sceAudioOutEnableMonoHpOutput
libSceAudioOut sceAudioOutEnableTVCorrection
libSceAudioOut sceAudioOutEnableTVVirtual
libSceAudioOut sceAudioOutEnableVrControllerLowPowerMode
libSceAudioOut sceAudioOutExConfigureOutputMode
libSceAudioOut sceAudioOutExGetLastOutputTime
libSceAudioOut sceAudioOutExGetOutputInfo
libSceAudioOut sceAudioOutExGetSystemInfo
libSceAudioOut sceAudioOutExPtClose
libSceAudioOut sceAudioOutExPtGetLastOutputTime
libSceAudioOut sceAudioOutExPtOpen
libSceAudioOut sceAudioOutExSystemInfoIsSupportedAudioOutExMode
libSceAudioOut sceAudioOutGetFocusEnablePid
libSceAudioOut sceAudioOutGetHandleStatusInfo
libSceAudioOut sceAudioOutGetInfo
libSceAudioOut sceAudioOutGetInfoOpenNum
libSceAudioOut sceAudioOutGetSimulatedBusUsableStatusByBusType
libSceAudioOut sceAudioOutGetSimulatedHandleStatusInfo
libSceAudioOut sceAudioOutGetSimulatedHandleStatusInfo2
libSceAudioOut sceAudioOutMasteringGetState
libSceAudioOut sceAudioOutMasteringInit
libSceAudioOut sceAudioOutMasteringSetParam
libSceAudioOut sceAudioOutMasteringTerm
libSceAudioOut sceAudioOutOpenEx
libSceAudioOut sceAudioOutPtClose
libSceAudioOut sceAudioOutPtGetLastOutputTime
libSceAudioOut sceAudioOutPtOpen
libSceAudioOut sceAudioOutSetAllMute
libSceAudioOut sceAudioOutSetCaesarVolume
libSceAudioOut sceAudioOutSetChatBalance
libSceAudioOut sceAudioOutSetHeadphoneOutMode
libSceAudioOut sceAudioOutSetMainOutput
libSceAudioOut sceAudioOutSetPadJackVolume
libSceAudioOut sceAudioOutSetPadSpkVolume
libSceAudioOut sceAudioOutSetRecMode
libSceAudioOut sceAudioOutSetSparkEQ
libSceAudioOut sceAudioOutSetSystemDebugState
libSceAudioOut sceAudioOutSetUsbVolume
libSceAudioOut sceAudioOutSetVolumeDown
libSceAudioOut sceAudioOutSysConfigureOutputMode
libSceAudioOut sceAudioOutSysGetMonitorInfo
libSceAudioOut sceAudioOutSysGetOutputInfo
libSceAudioOut sceAudioOutSysGetSystemInfo
libSceAudioOut sceAudioOutSysHdmiMonitorInfoIsSupportedAudioOutMode
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6273733200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8021#issuecomment-6273733200). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T17:57:44Z. --- <!-- progress-report --> ### Progress report (8a7ba4b → 29e9ab3) 📉 **System libraries**: 64.23% (-0.94%, +96 declared functions) <details> <summary>🆕 96 declared as stubs</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOut2AllAudioMainToHeadphoneForDiag` | | libSceAudioOut | `sceAudioOut2ArbitrationInitialize` | | libSceAudioOut | `sceAudioOut2ContextBedWrite` | | libSceAudioOut | `sceAudioOut2DebugStateCtrl` | | libSceAudioOut | `sceAudioOut2GetAmbisonicsEncodeCoefficients` | | libSceAudioOut | `sceAudioOut2GetHrtfIdForCronos` | | libSceAudioOut | `sceAudioOut2GetIpcHandle` | | libSceAudioOut | `sceAudioOut2GetSystemStateEx` | | libSceAudioOut | `sceAudioOut2GetTvCorrectionInfo` | | libSceAudioOut | `sceAudioOut2InitializeEx` | | libSceAudioOut | `sceAudioOut2LoContextAdvance` | | libSceAudioOut | `sceAudioOut2LoContextCreate` | | libSceAudioOut | `sceAudioOut2LoContextDestroy` | | libSceAudioOut | `sceAudioOut2LoContextGetQueueLevel` | | libSceAudioOut | `sceAudioOut2LoContextPush` | | libSceAudioOut | `sceAudioOut2LoContextQueryMemory` | | libSceAudioOut | `sceAudioOut2LoContextSetAttributes` | | libSceAudioOut | `sceAudioOut2LoInit` | | libSceAudioOut | `sceAudioOut2LoPortCreate` | | libSceAudioOut | `sceAudioOut2LoPortDestroy` | | libSceAudioOut | `sceAudioOut2LoPortGetState` | | libSceAudioOut | `sceAudioOut2LoPortGetStateEx` | | libSceAudioOut | `sceAudioOut2LoPortSetAttributes` | | libSceAudioOut | `sceAudioOut2LoTerminate` | | libSceAudioOut | `sceAudioOut2MasteringInitEx` | | libSceAudioOut | `sceAudioOut2MbusInit` | | libSceAudioOut | `sceAudioOut2MbusSetCaesarParam` | | libSceAudioOut | `sceAudioOut2MbusSetConnections` | | libSceAudioOut | `sceAudioOut2MbusSetDeviceConnections` | | libSceAudioOut | `sceAudioOut2MbusSetHeadphoneOutMode` | | libSceAudioOut | `sceAudioOut2MbusSetMorpheusParam` | | libSceAudioOut | `sceAudioOut2MbusSetPortConnections` | | libSceAudioOut | `sceAudioOut2MbusSetPortStatuses` | | libSceAudioOut | `sceAudioOut2MbusSetSparkParam` | | libSceAudioOut | `sceAudioOut2MbusUserLoginFor3DAudio` | | libSceAudioOut | `sceAudioOut2PortCreateEx` | | libSceAudioOut | `sceAudioOut2PortRegister` | | libSceAudioOut | `sceAudioOut2PortUnregister` | | libSceAudioOut | `sceAudioOut2ReportRegisterHandler` | | libSceAudioOut | `sceAudioOut2ReportUnregisterHandler` | | libSceAudioOut | `sceAudioOut2SetDebugHeadphoneMode` | | libSceAudioOut | `sceAudioOut2Terminate` | | libSceAudioOut | `sceAudioOut2UserCreateEx` | | libSceAudioOut | `sceAudioOutArbitrationInitialize` | | libSceAudioOut | `sceAudioOutAssignHRTF` | | libSceAudioOut | `sceAudioOutAttachToApplicationByPid` | | libSceAudioOut | `sceAudioOutChangeAppModuleState` | | libSceAudioOut | `sceAudioOutCustomHrtfIsExist` | | libSceAudioOut | `sceAudioOutDetachFromApplicationByPid` | | libSceAudioOut | `sceAudioOutEnable3DAudioByArbitration` | | libSceAudioOut | `sceAudioOutEnable3DAudioForUser` | | libSceAudioOut | `sceAudioOutEnableCinematicVrRotation` | | libSceAudioOut | `sceAudioOutEnableMonoHpOutput` | | libSceAudioOut | `sceAudioOutEnableTVCorrection` | | libSceAudioOut | `sceAudioOutEnableTVVirtual` | | libSceAudioOut | `sceAudioOutEnableVrControllerLowPowerMode` | | libSceAudioOut | `sceAudioOutExConfigureOutputMode` | | libSceAudioOut | `sceAudioOutExGetLastOutputTime` | | libSceAudioOut | `sceAudioOutExGetOutputInfo` | | libSceAudioOut | `sceAudioOutExGetSystemInfo` | | libSceAudioOut | `sceAudioOutExPtClose` | | libSceAudioOut | `sceAudioOutExPtGetLastOutputTime` | | libSceAudioOut | `sceAudioOutExPtOpen` | | libSceAudioOut | `sceAudioOutExSystemInfoIsSupportedAudioOutExMode` | | libSceAudioOut | `sceAudioOutGetFocusEnablePid` | | libSceAudioOut | `sceAudioOutGetHandleStatusInfo` | | libSceAudioOut | `sceAudioOutGetInfo` | | libSceAudioOut | `sceAudioOutGetInfoOpenNum` | | libSceAudioOut | `sceAudioOutGetSimulatedBusUsableStatusByBusType` | | libSceAudioOut | `sceAudioOutGetSimulatedHandleStatusInfo` | | libSceAudioOut | `sceAudioOutGetSimulatedHandleStatusInfo2` | | libSceAudioOut | `sceAudioOutMasteringGetState` | | libSceAudioOut | `sceAudioOutMasteringInit` | | libSceAudioOut | `sceAudioOutMasteringSetParam` | | libSceAudioOut | `sceAudioOutMasteringTerm` | | libSceAudioOut | `sceAudioOutOpenEx` | | libSceAudioOut | `sceAudioOutPtClose` | | libSceAudioOut | `sceAudioOutPtGetLastOutputTime` | | libSceAudioOut | `sceAudioOutPtOpen` | | libSceAudioOut | `sceAudioOutSetAllMute` | | libSceAudioOut | `sceAudioOutSetCaesarVolume` | | libSceAudioOut | `sceAudioOutSetChatBalance` | | libSceAudioOut | `sceAudioOutSetHeadphoneOutMode` | | libSceAudioOut | `sceAudioOutSetMainOutput` | | libSceAudioOut | `sceAudioOutSetPadJackVolume` | | libSceAudioOut | `sceAudioOutSetPadSpkVolume` | | libSceAudioOut | `sceAudioOutSetRecMode` | | libSceAudioOut | `sceAudioOutSetSparkEQ` | | libSceAudioOut | `sceAudioOutSetSystemDebugState` | | libSceAudioOut | `sceAudioOutSetUsbVolume` | | libSceAudioOut | `sceAudioOutSetVolumeDown` | | libSceAudioOut | `sceAudioOutSysConfigureOutputMode` | | libSceAudioOut | `sceAudioOutSysGetMonitorInfo` | | libSceAudioOut | `sceAudioOutSysGetOutputInfo` | | libSceAudioOut | `sceAudioOutSysGetSystemInfo` | | libSceAudioOut | `sceAudioOutSysHdmiMonitorInfoIsSupportedAudioOutMode` | </details>
github-actions[bot] commented 2026-10-19 18:16:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T18:16:19Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5021 core/libs/prx/libSceAudioOut/CMakeLists.txt
docs/dev/debt/libSceAudioOut.md
PR 5965 core/libs/prx/libSceAudioOut/CMakeLists.txt
docs/dev/debt/libSceAudioOut.md
PR 6044 core/libs/prx/libSceAudioOut/CMakeLists.txt
PR 7332 core/libs/prx/libSceAudioOut/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6274095496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8021#issuecomment-6274095496). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T18:16:19Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAudioOut/CMakeLists.txt`<br>`docs/dev/debt/libSceAudioOut.md` | | [PR 5965](https://www.github.com/boykopovar/AnyPS5/pull/5965) | `core/libs/prx/libSceAudioOut/CMakeLists.txt`<br>`docs/dev/debt/libSceAudioOut.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAudioOut/CMakeLists.txt` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAudioOut/CMakeLists.txt` |
oneandonlydean commented 2026-10-20 04:30:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T04:30:52Z.


@ymatrix1 thanks. Most names check out against the pinned aerolib, but these don't appear in it: in #8021 sceAudioOut2LoPortSetAttributesEx, sceAudioOut2LoPortGetAttributes, sceAudioOut2LoPortCreateEx, sceAudioOut2LoContextQueryMemoryEx, sceAudioOut2LoContextGetAttributes, sceAudioOut2LoContextCreateEx, sceAudioOut2SetTvCorrectionInfo, sceAudioOut2GetSystemDebugState, sceAudioOut2SetSpeakerInfo, sceAudioOut2PortSetAttributesEx, sceAudioOut2SetHrtfIdForCronos, and in #8028 sceHmd2ReprojectionClearEventGpuEnd, sceHmd2ReprojectionClearEventGpuStart and sceHmd2GazeGetEnabledEye. Which database did these names come from? Also, #7798 already answers 54 of #8028's Hmd2 NIDs before initialization; whichever of the two lands second will need to drop its copy of those.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6283418536 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8021#issuecomment-6283418536). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T04:30:52Z. --- @ymatrix1 thanks. Most names check out against the pinned aerolib, but these don't appear in it: in #8021 sceAudioOut2LoPortSetAttributesEx, sceAudioOut2LoPortGetAttributes, sceAudioOut2LoPortCreateEx, sceAudioOut2LoContextQueryMemoryEx, sceAudioOut2LoContextGetAttributes, sceAudioOut2LoContextCreateEx, sceAudioOut2SetTvCorrectionInfo, sceAudioOut2GetSystemDebugState, sceAudioOut2SetSpeakerInfo, sceAudioOut2PortSetAttributesEx, sceAudioOut2SetHrtfIdForCronos, and in #8028 sceHmd2ReprojectionClearEventGpuEnd, sceHmd2ReprojectionClearEventGpuStart and sceHmd2GazeGetEnabledEye. Which database did these names come from? Also, #7798 already answers 54 of #8028's Hmd2 NIDs before initialization; whichever of the two lands second will need to drop its copy of those.
ymatrix1 commented 2026-10-20 10:04:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ymatrix1 on 2026-10-20T10:04:38Z.


@oneandonlydean thanks. The names came from a local NID name database built from aerolib plus extra name lists (not just the pinned file). Each name hashes to an NID that the console's own library exports, which is how I matched them, but I can't show where the extra names originate, so I removed every name that is not in the pinned aerolib: the 11 you listed are gone and the PR is now 96 stubs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6288461348 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8021#issuecomment-6288461348). Originally posted by [ymatrix1](https://github.com/ymatrix1) on 2026-10-20T10:04:38Z. --- @oneandonlydean thanks. The names came from a local NID name database built from aerolib plus extra name lists (not just the pinned file). Each name hashes to an NID that the console's own library exports, which is how I matched them, but I can't show where the extra names originate, so I removed every name that is not in the pinned aerolib: the 11 you listed are gone and the PR is now 96 stubs.
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!8021
No description provided.