docs(libSceAmpr, libSceAudioOut): correct two debt statements #13588

Merged
MarcZX10 merged 2 commits from upstream-pr/13588 into main 2026-10-31 05:02:12 +00:00
MarcZX10 commented 2026-10-30 18:52:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T18:52:25Z.


What

Corrects two statements in two debt documents, one commit each.

  • docs/dev/debt/libSceAmpr.md, silent-stub entry: sceAmprCommandBufferDestructor, sceAmprAprCommandBufferDestructor, sceAmprAmmCommandBufferConstructor and sceAmprAmmCommandBufferDestructor were described as returning 0 without touching the buffer. Each calls ReleaseExpandedCommandBuffer, which restores the original base and size and resets offset and the command count when the emulator had expanded that buffer. The entry now says so.
  • docs/dev/debt/libSceAudioOut.md, sceAudioOut2Lo* entry: the entry said every call forwards to its sceAudioOut2 counterpart. sceAudioOut2LoInit only marks AudioOut2 as initialized (the same body as sceAudioOut2InitializeEx) and does not call sceAudioOut2Initialize. The entry now names that exception.

Docs only. Each commit body gives the old claim, the code behaviour and permalinks pinned to the audited SHA b1b5353cfcee098ed17e3ba8a6e616bee97c9215. Between that SHA and the base of this PR, the only upstream change to these two files is one added AudioOut entry; the entries edited here are unchanged, and the code they describe is unchanged.

Tested

Run on this branch (base upstream/main = 50843f45d9):

  • python3 tools/check_conventions.py --base upstream/main: exit 0

  • git diff --check upstream/main HEAD: exit 0

  • python3 tools/env_reference.py --check: exit 1 with the same single failure as on a clean upstream/main archive (APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it); the two outputs are identical. This is the known baseline failure, not a documentation error.

  • Open-PR overlap: tools/pr_overlap.py --branch finished. It could not compare docs/dev/debt/libSceAudioOut.md against PR 5021 and PR 12863 because both conflict with the base. Checked by hand: PR 12863 adds one new AudioOut entry and does not edit the entry changed here; PR 5021's file list does not include the debt doc. No other open PR edits the changed entries.

Permalink lines were read at the audited SHA.

NOT RUN: build and unit tests (docs only); Windows, macOS, real devices, hardware GPU, console (not applicable to a documentation change).

  • test_quality_heuristics (precheck), raw failure line: {line}. The harness points at tools/pr_test_quality.py and at a .md file; this tool is not part of upstream trees and does not apply to docs-only PRs.

  • test_quality_heuristics (precheck), raw failure line: {line}. The harness points at tools/pr_test_quality.py and at a .md file; this tool is not part of upstream trees and does not apply to docs-only PRs.

  • pr_precheck.py (no-build, run from a scratch checkout whose tools/ is a copy of /marc/AnyPS5/tools, because the candidate commits are not in that repository): every item passes except test_quality_heuristics, see 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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5089506727 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13588). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T18:52:25Z. --- ### What Corrects two statements in two debt documents, one commit each. - `docs/dev/debt/libSceAmpr.md`, silent-stub entry: `sceAmprCommandBufferDestructor`, `sceAmprAprCommandBufferDestructor`, `sceAmprAmmCommandBufferConstructor` and `sceAmprAmmCommandBufferDestructor` were described as returning 0 without touching the buffer. Each calls `ReleaseExpandedCommandBuffer`, which restores the original `base` and `size` and resets `offset` and the command count when the emulator had expanded that buffer. The entry now says so. - `docs/dev/debt/libSceAudioOut.md`, `sceAudioOut2Lo*` entry: the entry said every call forwards to its `sceAudioOut2` counterpart. `sceAudioOut2LoInit` only marks AudioOut2 as initialized (the same body as `sceAudioOut2InitializeEx`) and does not call `sceAudioOut2Initialize`. The entry now names that exception. Docs only. Each commit body gives the old claim, the code behaviour and permalinks pinned to the audited SHA `b1b5353cfcee098ed17e3ba8a6e616bee97c9215`. Between that SHA and the base of this PR, the only upstream change to these two files is one added AudioOut entry; the entries edited here are unchanged, and the code they describe is unchanged. ### Tested Run on this branch (base `upstream/main` = `50843f45d9`): - `python3 tools/check_conventions.py --base upstream/main`: exit 0 - `git diff --check upstream/main HEAD`: exit 0 - `python3 tools/env_reference.py --check`: exit 1 with the same single failure as on a clean `upstream/main` archive (`APS5_PAD_SPEAKER_FALLBACK_DB has a row in docs/dev/ENVIRONMENT.md but the code no longer reads it`); the two outputs are identical. This is the known baseline failure, not a documentation error. - Open-PR overlap: `tools/pr_overlap.py --branch` finished. It could not compare `docs/dev/debt/libSceAudioOut.md` against PR 5021 and PR 12863 because both conflict with the base. Checked by hand: PR 12863 adds one new AudioOut entry and does not edit the entry changed here; PR 5021's file list does not include the debt doc. No other open PR edits the changed entries. Permalink lines were read at the audited SHA. NOT RUN: build and unit tests (docs only); Windows, macOS, real devices, hardware GPU, console (not applicable to a documentation change). - `test_quality_heuristics` (precheck), raw failure line: `{line}`. The harness points at `tools/pr_test_quality.py` and at a `.md` file; this tool is not part of upstream trees and does not apply to docs-only PRs. - `test_quality_heuristics` (precheck), raw failure line: `{line}`. The harness points at `tools/pr_test_quality.py` and at a `.md` file; this tool is not part of upstream trees and does not apply to docs-only PRs. - `pr_precheck.py` (no-build, run from a scratch checkout whose `tools/` is a copy of `/marc/AnyPS5/tools`, because the candidate commits are not in that repository): every item passes except `test_quality_heuristics`, see 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
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!13588
No description provided.