fix(libSceAudioOut): play silence for a regiven AudioOut2 buffer that is not set again #13988
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13988"
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 alfalfa-star on 2026-10-31T14:30:19Z.
What
A port that got no new PCM buffer for a grain repeated its last buffer whenever that buffer had not moved on. That also covered a port given the same buffer every grain, which then plays whatever is in that memory once the title stops setting it. Now only a port given a buffer once (since it was created or cleared with a null buffer) repeats it; a port given buffers again plays silence for a grain without a new one. The rewritten-in-place case (
audio_out2_timing,TestRewrittenBufferRepeats) is unchanged, as is the ring-buffer case from #2536.Crash Bandicoot 4 (PPSA02433): Wwise's 3D audio sink (
sceaudio3d.prx) gives each of its 16 object ports (type 0x100, mono float) the same buffer every grain, about 94 sets per second. When the title loads (pressing a button on the title screen, entering the cutscene) the sets stop for ~350 ms while advances continue. The repeat then mixed the reused memory: values up to 6e18 and NaNs, a loud high-pitched burst. Per-port trace of the bad grains before the change:(source 12 = repeated buffer, snapshot at advance). Attribute sets per second on port 4 around it:
37s:94 38s:91 39s:61 40s:94. With the change there are no bad grains in the same scene, and the burst is gone by ear.Tested
[a2bad]trace: 0 lines vs 400 before).TestAdvancedRegivenBufferPlaysSilenceWithoutANewSetinaudio_out2_port_buffersfails without the change and passes with it.audio_out*tests pass.tools/check_conventions.py --base upstream/mainpasses.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T14:36:08Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The PR describes an audio defect in PPSA02433 but lists no title unblock and lacks the required
unblocks titlelabel and bring-up tracking.What I ran
I checked the exact open PR head
11f217b14fbc293d8ce3e9b98b5c1cb4b924eb0eagainst base73f4f7e06e4f210a8c6570e335fd654dc0a86134; no merged preview was used. I inspected the focused diff, read the hosted checks, and queried the repository for a matching bring-up discussion. I did not build or run tests locally.Commands:
Results
Unedited hosted check output
Findings
Blocking
The description reports a wrong audio result in PPSA02433, but its checklist says
Unblocks: none (PPSA02433 audio burst)and the PR has nounblocks titlelabel. The contribution rules require the title ID and its Game bring-up discussion on the checklist, the corresponding label, and keeping the discussion’s list of needed PRs current (CONTRIBUTING.md at the reviewed base). The matching discussion is Crash Bandicoot 4: It’s About Time (PPSA02433), #9065. Update the checklist toUnblocks: PPSA02433 #9065, add theunblocks titlelabel, and list this PR in that discussion.Non-blocking
None identified in this pass.
Not verified
I did not independently run the audio tests or the reported PPSA02433 scene, and the PR does not establish behavior on a physical PS5. The reported Linux tests and title observations are author-provided. Product CI jobs were skipped.
To get this to a good state
Update the title-unblock checklist, label, and discussion entry. I will recheck the updated PR and relevant checks after the change.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T15:04:45Z.
Review: APPROVED
Re-checked — looks good
The title-unblock checklist, label, and #9065 bring-up entry are now present for the already-reviewed head.
What I ran
Rechecked head
11f217b14fbc293d8ce3e9b98b5c1cb4b924eb0eagainst base73f4f7e06e4f210a8c6570e335fd654dc0a86134; no code changed since the previous review. I verified the live PR checklist and label, the #9065 discussion entry, and current hosted checks.Results
unblocks titlelabelNot verified
I did not independently run the AudioOut2 tests or PPSA02433; those results remain author-reported.
Sources