feat(libSceAudioOut): validate state in sceAudioOut2MasteringGetState #4179

Closed
jagrat04 wants to merge 1 commit from upstream-pr/4179 into main
jagrat04 commented 2026-10-12 00:47:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-12T00:47:40Z.


What

Validates state in sceAudioOut2MasteringGetState in libSceAudioOut:

  • When state is null, throw via NotImplemented_nid_no_patch(__func__), matching the error behavior of sceAudioOut2MasteringSetParam.
  • When state is non-null, return 0 (as there is no mastering stage).
  • Add test coverage in core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp.
  • Update docs/dev/TechnicalDebt.md.

Tested

  • python tools/check_conventions.py --base origin/main passed with 0 violations.
  • Verified zero comments in C++ implementation files.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823621483 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4179). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-12T00:47:40Z. --- ### What Validates `state` in `sceAudioOut2MasteringGetState` in `libSceAudioOut`: - When `state` is null, throw via `NotImplemented_nid_no_patch(__func__)`, matching the error behavior of `sceAudioOut2MasteringSetParam`. - When `state` is non-null, return `0` (as there is no mastering stage). - Add test coverage in `core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp`. - Update `docs/dev/TechnicalDebt.md`. ### Tested - `python tools/check_conventions.py --base origin/main` passed with 0 violations. - Verified zero comments in C++ implementation files. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-12 01:17:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:17:59Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4064 core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp L13, L62, L70
#4130 docs/dev/TechnicalDebt.md L586
#4165 core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp L13, L62, L70
docs/dev/TechnicalDebt.md L586
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116042307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4179#issuecomment-6116042307). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T01:17:59Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4064 | `core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp` [L13](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L13), [L62](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L62), [L70](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L70) | | | | #4130 | `docs/dev/TechnicalDebt.md` [L586](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L586) | | | | #4165 | `core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp` [L13](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L13), [L62](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L62), [L70](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/core/libs/prx/libSceAudioOut/tests/AudioOut2Latency.cpp#L70)<br>`docs/dev/TechnicalDebt.md` [L586](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L586) | | |
oneandonlydean commented 2026-10-12 08:28:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:28:44Z.


Closing: sceAudioOut2MasteringGetState would return 0 without writing the state the caller asked for, and no title is shown to reach it. Reopen with the title ID, the log line where it stops on main, and what the state should hold.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120586431 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4179#issuecomment-6120586431). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T08:28:44Z. --- Closing: `sceAudioOut2MasteringGetState` would return 0 without writing the state the caller asked for, and no title is shown to reach it. Reopen with the title ID, the log line where it stops on main, and what the state should hold.

Pull request closed

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!4179
No description provided.