fix(libSceAudioOut): ignore non-finite stereo mix contributions #28890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28890"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by RuiRDA on 2026-12-04T13:35:43Z.
What
Skip zero-gain ports and non-finite per-channel contributions in the stereo mixer so an invalid contribution cannot discard the valid audio mixed beside it. Add a buffer fixture for the affected mix cases. The open #27282 covers different AudioOut2 validation paths.
Tested
The diff and conventions checks passed. The audio buffer fixture was not run in this environment because the SDL headers needed to compile the native audio source were unavailable.
git diff --checkand the conventions checker passed. I searched for duplicate and related open PRs. A completepr_overlap.pyscan requires an authenticated GitHub CLI.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T13:55:59Z.
Review: APPROVED
Reviewed — looks good
The reviewed head is
a5a3dca95c154fcb2cbccd13eb75cdff8a19558b; the mixer skips zero-gain ports and non-finite channel samples, and the added fixture covers NaN and infinity inputs.What I ran
Read the prepared description, commit list, manifest, file list, and diff. Used
repo_read.pyto search mixer call sites and read the changed mixer and fixture context at the pinned head. No build or test was run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The audio fixture, build, and runtime behavior were not verified. Read
core/libs/prx/libSceAudioOut/src/AudioOut2Port.cppandcore/libs/prx/libSceAudioOut/tests/AudioOut2PortBuffers.cpp;files.jsonlists both changed files as reviewed and no exclusions.To get this to a good state
Nothing is required.