feat(libSceAudioOut): implement sceAudioOut2EnableChat #4165

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/4165 into main
MarcZX10 commented 2026-10-12 00:20:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T00:20:16Z.


What

Carries screamm's first commit from #4109, preserving the original commit author. It implements sceAudioOut2EnableChat, which Palworld (PPSA23126) imports from its bundled libdiscord_partner_sdk.prx and currently reaches as an unresolved import. SharpProspero declares the zero-argument function as allowing chat audio alongside the application's audio.

AnyPS5 has no AudioOut2 chat port or host chat mixer, so this records that chat audio is allowed, emits one trace message when APS5_TRACE_AUDIOOUT2 is enabled, and returns success. The unresolved console behavior for calls before initialization, repeated calls, and calls without a chat session is documented in TechnicalDebt. The ContentDelete portion of #4109 is carried separately by #4130.

Tested

Linux x86-64, GCC 12.2, Release:

  • Built audio_out2_latency_tests successfully.
  • ctest -R '^audio_out2_latency$' --output-on-failure: 1/1 passed, including repeated sceAudioOut2EnableChat calls.
  • python3 tools/check_conventions.py --base upstream/main: passed.

Checklist

  • Based on current main; no open PR implements this function's behavior
  • One topic per PR
  • No code comments added
  • No unimplemented path changed
  • No notes or investigation files added
  • No third-party code added
  • Generic behavior
  • Depends on: #4064 (it edits the same AudioOut2 test/source files; rebase after it merges)
  • AI-assisted: yes. Original commit was written with Claude Code assistance; carried and tested by MarcZX100.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823468514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4165). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T00:20:16Z. --- ### What Carries screamm's first commit from #4109, preserving the original commit author. It implements `sceAudioOut2EnableChat`, which Palworld (PPSA23126) imports from its bundled `libdiscord_partner_sdk.prx` and currently reaches as an unresolved import. SharpProspero declares the zero-argument function as allowing chat audio alongside the application's audio. AnyPS5 has no AudioOut2 chat port or host chat mixer, so this records that chat audio is allowed, emits one trace message when `APS5_TRACE_AUDIOOUT2` is enabled, and returns success. The unresolved console behavior for calls before initialization, repeated calls, and calls without a chat session is documented in TechnicalDebt. The ContentDelete portion of #4109 is carried separately by #4130. ### Tested Linux x86-64, GCC 12.2, Release: - Built `audio_out2_latency_tests` successfully. - `ctest -R '^audio_out2_latency$' --output-on-failure`: 1/1 passed, including repeated `sceAudioOut2EnableChat` calls. - `python3 tools/check_conventions.py --base upstream/main`: passed. ### Checklist - [x] Based on current `main`; no open PR implements this function's behavior - [x] One topic per PR - [x] No code comments added - [x] No unimplemented path changed - [x] No notes or investigation files added - [x] No third-party code added - [x] Generic behavior - [x] Depends on: #4064 (it edits the same AudioOut2 test/source files; rebase after it merges) - [x] AI-assisted: yes. Original commit was written with Claude Code assistance; carried and tested by MarcZX100.
github-actions[bot] commented 2026-10-12 00:28:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T00:28:34Z.


Progress report (1acfa7f → b682b73)

📈 System libraries: 86.39% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAudioOut sceAudioOut2EnableChat
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115604917 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4165#issuecomment-6115604917). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T00:28:34Z. --- <!-- progress-report --> ### Progress report (1acfa7f → b682b73) 📈 **System libraries**: 86.39% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOut2EnableChat` | </details>
xXPBSXx commented 2026-10-12 13:43:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T13:43:07Z.


Windows test of head b713e0508 merged onto current main (c6efe068a, clean merge; built together with three other open PRs from the same list, so the numbers below are for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors.

audio_out2_latency (the test this PR changes) passes, with the other audio_out* tests (20 of 20 in the filter audio_out|guest_directory|guest_dup|guest_kernel_sys|guest_sce_net|guest_file).

Not checked: that the test fails without the change, Linux, a title run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6125496523 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4165#issuecomment-6125496523). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T13:43:07Z. --- Windows test of head `b713e0508` merged onto current `main` (`c6efe068a`, clean merge; built together with three other open PRs from the same list, so the numbers below are for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors. `audio_out2_latency` (the test this PR changes) passes, with the other `audio_out*` tests (20 of 20 in the filter `audio_out|guest_directory|guest_dup|guest_kernel_sys|guest_sce_net|guest_file`). Not checked: that the test fails without the change, Linux, a title run. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-13 00:58:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:58:29Z.


Closing: sceAudioOut2EnableChat is already exported on main, so nothing fails to load on it, and #4109 says the call has not been seen executing; returning 0 for it is a silent stub no title needs. Reopen with the title ID and the log line where it throws on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135730839 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4165#issuecomment-6135730839). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T00:58:29Z. --- Closing: `sceAudioOut2EnableChat` is already exported on main, so nothing fails to load on it, and #4109 says the call has not been seen executing; returning 0 for it is a silent stub no title needs. Reopen with the title ID and the log line where it throws on main.

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!4165
No description provided.