libSceAudioOut: sceAudioOutSysGetHdmiMonitorInfo throws (Surround Sound Studio); fix branch ready #3758
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T16:30:50Z.
libSceAudioOut's
sceAudioOutSysGetHdmiMonitorInfo(NIDTf9-yOJwF-A) is declared without parameters and throws. Surround Sound Studio (PPSA99051) dies on it: orishamir reported in #3581 that onmaina11c8f7fwith the flat-interpolation fix the title gets "past this check, thensceAudioOutSysGetHdmiMonitorInfo not implementedafter 16 s, before its first frame".Fix branch ready:
screamm:feat/audioout-hdmi-monitor-info(8daaeca5, one commit onmaina11c8f7f). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. I did not run the title with it, so the "stop line gone" evidence still needs a run.(int type, void* info, size_t size), the 0x180-byte struct and the null rule come from sainsaji's hardware-measured PS5-Audio-Passthrough-Research (docs/FINDINGS.mdsection 3,sample-app/.../bitstream_out.cpp:92-128atc3be9c2a); facts only were used (GPL-3.0). Type 1 with size 0x180 zeroes the struct and returns 0, which reports an HDMI sink with an empty name (+0x0B) and zero formats (+0x94): the answer of a console with no HDMI audio sink is not measured anywhere, so this is a documented choice, not a measurement; both known callers tolerate it (Surround Sound Studio only checks for a negative return; EVO Player treats an empty list like a failure and tries passthrough). A null buffer returns0x80260004, the null-pointer code the other AudioOut calls use. Type 0x10 (accepted by the console, return unknown), any other type and any other size throw. No PCM entry is synthesised for the host device because the entry's rate-mask bytes are not published. No initialization check, because no AudioOut export keeps init state. TechnicalDebt moves the function out of the "declared without parameters" entry and records what is unverified.audio_out_sys_hdmi_monitor_infotest (registered likeaudio_out_ex) checks the zeroed 0x180 bytes, that nothing past 0x180 is written, the null-buffer code and the four throws.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:audio_out_sys_hdmi_monitor_info,audio_out_ex,audio_out_last_output_time3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"534/537, the failures being the knownwindows_exceptions(#3411, fixed by #3415),guest_kernel_sys(#3510) andguest_filesystem(#3518); withmain'sAudioOut.cppthe new test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).