Skip to content

feat(libSceAudioOut): implement sceAudioOut2EnableChat - #4165

Closed
MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/carry-audioout2-enablechat-4109
Closed

MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/carry-audioout2-enablechat-4109

Conversation

@MarcZX10

Copy link
Copy Markdown
Contributor

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: feat(syslib): implement 22 functions, raise coverage to 86.84% #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.

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Progress report (1acfa7f → b682b73)

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

✅ 1 implemented
Library Name
libSceAudioOut sceAudioOut2EnableChat

@xXPBSXx

xXPBSXx commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

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).

@MarcZX10
MarcZX10 force-pushed the codex/carry-audioout2-enablechat-4109 branch 2 times, most recently from f788f85 to 0d11ac8 Compare October 12, 2026 18:36
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 12, 2026
Palworld (PPSA23126, boykopovar#2648) stops at start-up on the export, imported by
its bundled libdiscord_partner_sdk.prx:

    FAIL: unresolved ELF import oiOi7vgPfAY from libSceAudioOut.prx

PPSA28416 imports it from its bundled party-ps5-shipping.prx as well. The
call itself has not been observed yet.

SharpProspero (5dfdb4b0, Interop/Audio/AudioOut2.cs:460-464) declares
`int sceAudioOut2EnableChat()`, "Allows chat audio alongside the
application's own", and the ps5-payload-dev SDK stub (f5d40f02,
sce_stubs/libSceAudioOut.c:62) exports it as well. There is no context or
handle to validate. The host mixes no chat audio and AudioOut2 has no chat
port, so the call records that chat audio is allowed (traced once with
APS5_TRACE_AUDIOOUT2) and returns 0. Whether the console fails it without
a chat session or when repeated is recorded in TechnicalDebt, and the
PPSA28416 "signature unknown" entry is dropped.

NID oiOi7vgPfAY matches tools/nid_names.py and the shadPS4 aerolib list.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit d38f96d)
@MarcZX10
MarcZX10 force-pushed the codex/carry-audioout2-enablechat-4109 branch from 0d11ac8 to b682b73 Compare October 12, 2026 18:48
@oneandonlydean oneandonlydean self-assigned this Oct 12, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 12, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs needs rebase Conflicts with main, rebase needed prx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants