docs(libSceAudioOut): compare sceAudioOutGetPortState with a PS5 and three emulators #16736

Merged
xXPBSXx merged 2 commits from upstream-pr/16736 into main 2026-11-11 02:42:02 +00:00
xXPBSXx commented 2026-11-07 13:56:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-07T13:56:28Z.


What

Adds a technical-debt entry for sceAudioOutGetPortState. AnyPS5 reports output 1, volume 127 and a reroute counter of 0 for a main port; a PS5 reported output 0, volume -1 and a reroute counter of 5 for a 16-bit stereo main port, with 2 channels, flag 0 and active state 0 as AnyPS5 has them. shadPS4 reports volume -1 as the console did, KytyPS5 and fpPS4 report 127, and all three report output 1 and a reroute counter of 0. Only the entry is added; no code changes.

Tested

Measured on a PS5 with firmware 11.60 (kernel_get_fw_version 0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-07 at 04:56 UTC (the console clock was about 1 h 41 min ahead), one run: sceAudioOutGetPortState returned 0 and a 16-byte record, identical before and after one output. A title process may differ. The probe source and its raw output are in the first comment. The emulator rows were read from shadPS4 0614ce324b (audioout.cpp lines 463-524), KytyPS5 5e837a9bea (audio.cpp lines 915-928) and fpPS4 04cefd43e6 (ps4_libsceaudioout.pas lines 384-418). tools/check_conventions.py --base upstream/main passes.

Overlap: the 15 open pull requests that change docs/dev/debt/libSceAudioOut.md were checked on 2026-11-07 between 13:35 UTC and 13:44 UTC against main c32f751139; two of them (#14330 and #16542) have been merged since. Of the other 13, three already conflict with main without this change (#5021 and #14212 in that file, #12315 in other files), and none conflicts only with this change. The other ten merge cleanly with and without it.

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
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (docs change)
  • AI-assisted: yes

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5202269750 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16736). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-07T13:56:28Z. --- ### What Adds a technical-debt entry for `sceAudioOutGetPortState`. AnyPS5 reports output 1, volume 127 and a reroute counter of 0 for a main port; a PS5 reported output 0, volume -1 and a reroute counter of 5 for a 16-bit stereo main port, with 2 channels, flag 0 and active state 0 as AnyPS5 has them. shadPS4 reports volume -1 as the console did, KytyPS5 and fpPS4 report 127, and all three report output 1 and a reroute counter of 0. Only the entry is added; no code changes. ### Tested Measured on a PS5 with firmware 11.60 (`kernel_get_fw_version` 0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-07 at 04:56 UTC (the console clock was about 1 h 41 min ahead), one run: `sceAudioOutGetPortState` returned 0 and a 16-byte record, identical before and after one output. A title process may differ. The probe source and its raw output are in the first comment. The emulator rows were read from shadPS4 `0614ce324b` (`audioout.cpp` lines 463-524), KytyPS5 `5e837a9bea` (`audio.cpp` lines 915-928) and fpPS4 `04cefd43e6` (`ps4_libsceaudioout.pas` lines 384-418). `tools/check_conventions.py --base upstream/main` passes. Overlap: the 15 open pull requests that change `docs/dev/debt/libSceAudioOut.md` were checked on 2026-11-07 between 13:35 UTC and 13:44 UTC against `main` `c32f751139`; two of them (#14330 and #16542) have been merged since. Of the other 13, three already conflict with `main` without this change (#5021 and #14212 in that file, #12315 in other files), and none conflicts only with this change. The other ten merge cleanly with and without it. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a (docs change) <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> AI-assisted (Claude Code).
gabichuuuuu commented 2026-11-08 21:55:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T21:55:43Z.

Review: COMMENTED


Docs check of head c152826a44 against main 0bae53facd: I compared what the entry says about the code with the code, and checked the links and counts. I can't check the console measurements themselves.

The description of the code matches sceAudioOutGetPortState (AudioOut.cpp:609-628): reroute counter 0, volume 127, flag 0, active state 0, output 1 for a main port, and channels capped at 2.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819833502 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16736#pullrequestreview-5819833502). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T21:55:43Z. **Review:** COMMENTED --- Docs check of head `c152826a44` against `main` `0bae53facd`: I compared what the entry says about the code with the code, and checked the links and counts. I can't check the console measurements themselves. The description of the code matches `sceAudioOutGetPortState` (`AudioOut.cpp:609-628`): reroute counter 0, volume 127, flag 0, active state 0, output 1 for a main port, and channels capped at 2.
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!16736
No description provided.