libSceAudioOut: sceAudioOutSysGetHdmiMonitorInfo throws (Surround Sound Studio); fix branch ready #3758

Closed
opened 2026-10-11 16:30:50 +00:00 by screamm · 0 comments
screamm commented 2026-10-11 16:30:50 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T16:30:50Z.


libSceAudioOut's sceAudioOutSysGetHdmiMonitorInfo (NID Tf9-yOJwF-A) is declared without parameters and throws. Surround Sound Studio (PPSA99051) dies on it: orishamir reported in #3581 that on main a11c8f7f with the flat-interpolation fix the title gets "past this check, then sceAudioOutSysGetHdmiMonitorInfo not implemented after 16 s, before its first frame".

Fix branch ready: screamm:feat/audioout-hdmi-monitor-info (8daaeca5, one commit on main a11c8f7f). 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.

  • Signature (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.md section 3, sample-app/.../bitstream_out.cpp:92-128 at c3be9c2a); 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 returns 0x80260004, 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.
  • New audio_out_sys_hdmi_monitor_info test (registered like audio_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 including libs: audio_out_sys_hdmi_monitor_info, audio_out_ex, audio_out_last_output_time 3/3; ctest -j8 -E "^agc_driver_|^video_out_flip" 534/537, the failures being the known windows_exceptions (#3411, fixed by #3415), guest_kernel_sys (#3510) and guest_filesystem (#3518); with main's AudioOut.cpp the new test fails; tools/check_conventions.py --base main and git diff --check pass. Not run on Linux.

Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5802963240 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3758). Originally posted by [screamm](https://github.com/screamm) on 2026-10-11T16:30:50Z. --- libSceAudioOut's `sceAudioOutSysGetHdmiMonitorInfo` (NID `Tf9-yOJwF-A`) is declared without parameters and throws. Surround Sound Studio (PPSA99051) dies on it: orishamir reported in #3581 that on `main` `a11c8f7f` with the flat-interpolation fix the title gets "past this check, then `sceAudioOutSysGetHdmiMonitorInfo not implemented` after 16 s, before its first frame". **Fix branch ready:** [`screamm:feat/audioout-hdmi-monitor-info`](https://github.com/screamm/AnyPS5/tree/feat/audioout-hdmi-monitor-info) (`8daaeca5`, one commit on `main` `a11c8f7f`). 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. - Signature `(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.md` section 3, `sample-app/.../bitstream_out.cpp:92-128` at `c3be9c2a`); 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 returns `0x80260004`, 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. - New `audio_out_sys_hdmi_monitor_info` test (registered like `audio_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 including `libs`: `audio_out_sys_hdmi_monitor_info`, `audio_out_ex`, `audio_out_last_output_time` 3/3; `ctest -j8 -E "^agc_driver_|^video_out_flip"` 534/537, the failures being the known `windows_exceptions` (#3411, fixed by #3415), `guest_kernel_sys` (#3510) and `guest_filesystem` (#3518); with `main`'s `AudioOut.cpp` the new test fails; `tools/check_conventions.py --base main` and `git diff --check` pass. Not run on Linux. Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Sign in to join this conversation.
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#3758
No description provided.