Skip to content

feat(libSceAudioOut): validate state in sceAudioOut2MasteringGetState - #4179

Closed
jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat-audioout2-mastering-get-state
Closed

jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat-audioout2-mastering-get-state

Conversation

@jagrat04

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants