docs(debt): name what the emulators do for two AudioOut entries #12765

Merged
xXPBSXx merged 2 commits from upstream-pr/12765 into main 2026-11-01 22:03:00 +00:00
xXPBSXx commented 2026-10-29 08:34:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-29T08:34:19Z.


What

Two libSceAudioOut debt entries cited a single emulator. They now say what the other emulators do, with PS4/PS5 named per source and the disagreements stated:

sceAudioOutSetMixLevelPadSpk (libSceAudioOut) - no emulator applies the level: shadPS4 (PS4) checks and stores it, fpPS4 (PS4) ignores it and KytyPS5 (PS5) has no such function anywhere in its repository; it is assumed to be a linear gain on the port's own output, and the -9 dB default (11626) is applied to every pad speaker port, including those of titles that never call the function

sceAudioOutGetSystemState (libSceAudioOut) - the 32-byte layout (float loudness, 4 reserved bytes, 3 reserved 64-bit words) follows shadPS4's OrbisAudioOutSystemState and SharpProspero's SceAudioOutSystemState (Size = 32); it is not confirmed on a console. Loudness is reported as a constant 0.0f, although SharpProspero documents it in LKFS, so the value is unconfirmed. shadPS4 returns NOT_INIT before sceAudioOutInit; that check is not modelled. Imported by PPSA30528, which fails to load without it. KytyPS5 (PS5), shadPS4 and AnyPS5 zero the whole state; fpPS4 (PS4) writes only the loudness (1) and checks the pointer before initialization

Changed: docs/dev/debt/libSceAudioOut.md, two existing entries. No code change.

Method: the three implementations were read at the linked commits; only their behaviour is described here, no code or names that exist only there were taken over. KytyPS5 targets the PS5, shadPS4 and fpPS4 the PS4, so their answers are not console measurements. For sceAudioOutGetSystemState AnyPS5 already matches KytyPS5 and shadPS4 (whole state zeroed, loudness 0); fpPS4 differs (loudness 1, pointer checked first), so the entry names that difference and no code changes.

Overlap

Four open PRs change docs/dev/debt/libSceAudioOut.md (#12698, #12425, #11762, #5021; file sets from git diff --name-only against each PR head's merge base); none changes these two entries. git merge-tree against #12698, #12425 and #11762 is clean; #5021 already conflicts with main, and the conflict is the same with this branch. Update after the rebase onto main with #13676 merged (checked 2026-10-31 at 19:45 UTC against main 620449652e): #12698 is merged, #12425 and #11762 are no longer open. The open pull requests that change the file, taken from today's overlap checks of #13885 and #14048 and a file check of the 61 pull requests opened since 16:50 UTC: #13885, #12791, #14048, #13988, #13989, #13998 and #14085 merge cleanly with this head; #13781, #12863 and #5021 conflict, but each of them conflicts with main on its own.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; based on main 1cac0ca433 (the merge of #13676), and it merges with main 620449652e without a conflict (checked 2026-10-31 19:33 UTC). Not built, not run.

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
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5064852543 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12765). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-29T08:34:19Z. --- ### What Two `libSceAudioOut` debt entries cited a single emulator. They now say what the other emulators do, with PS4/PS5 named per source and the disagreements stated: > [sceAudioOutSetMixLevelPadSpk](../../../core/libs/prx/libSceAudioOut/src/AudioOut.cpp) (libSceAudioOut) - no emulator applies the level: [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/0614ce324be092791b758d79f93d9f1ca5b10a81/src/core/libraries/audio/audioout.cpp#L769-L808) (PS4) checks and stores it, [fpPS4](https://github.com/red-prig/fpPS4/blob/04cefd43e6fddd1ab033e7980cd356d14c964905/src/audio/ps4_libsceaudioout.pas#L474-L488) (PS4) ignores it and KytyPS5 (PS5) has no such function anywhere in its repository; it is assumed to be a linear gain on the port's own output, and the -9 dB default (11626) is applied to every pad speaker port, including those of titles that never call the function > [sceAudioOutGetSystemState](../../../core/libs/prx/libSceAudioOut/src/AudioOut.cpp) (libSceAudioOut) - the 32-byte layout (`float loudness`, 4 reserved bytes, 3 reserved 64-bit words) follows shadPS4's `OrbisAudioOutSystemState` and SharpProspero's `SceAudioOutSystemState` (`Size = 32`); it is not confirmed on a console. Loudness is reported as a constant 0.0f, although SharpProspero documents it in LKFS, so the value is unconfirmed. shadPS4 returns NOT_INIT before `sceAudioOutInit`; that check is not modelled. Imported by PPSA30528, which fails to load without it. [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/5e837a9beac82c031868eaad9348d6a48245fb99/src/libs/audio.cpp#L961-L971) (PS5), shadPS4 and AnyPS5 zero the whole state; [fpPS4](https://github.com/red-prig/fpPS4/blob/04cefd43e6fddd1ab033e7980cd356d14c964905/src/audio/ps4_libsceaudioout.pas#L432-L439) (PS4) writes only the loudness (1) and checks the pointer before initialization Changed: `docs/dev/debt/libSceAudioOut.md`, two existing entries. No code change. Method: the three implementations were read at the linked commits; only their behaviour is described here, no code or names that exist only there were taken over. KytyPS5 targets the PS5, shadPS4 and fpPS4 the PS4, so their answers are not console measurements. For `sceAudioOutGetSystemState` AnyPS5 already matches KytyPS5 and shadPS4 (whole state zeroed, loudness 0); fpPS4 differs (loudness 1, pointer checked first), so the entry names that difference and no code changes. ### Overlap Four open PRs change `docs/dev/debt/libSceAudioOut.md` (#12698, #12425, #11762, #5021; file sets from `git diff --name-only` against each PR head's merge base); none changes these two entries. `git merge-tree` against #12698, #12425 and #11762 is clean; #5021 already conflicts with `main`, and the conflict is the same with this branch. Update after the rebase onto `main` with #13676 merged (checked 2026-10-31 at 19:45 UTC against `main` `620449652e`): #12698 is merged, #12425 and #11762 are no longer open. The open pull requests that change the file, taken from today's overlap checks of #13885 and #14048 and a file check of the 61 pull requests opened since 16:50 UTC: #13885, #12791, #14048, #13988, #13989, #13998 and #14085 merge cleanly with this head; #13781, #12863 and #5021 conflict, but each of them conflicts with `main` on its own. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; based on `main` `1cac0ca433` (the merge of #13676), and it merges with `main` `620449652e` without a conflict (checked 2026-10-31 19:33 UTC). Not built, not run. ### Checklist - [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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!12765
No description provided.