Repository navigation
Conversation
A PS5 on firmware 11.60 (payload process) reports 2 channels, flag 0 and active state 0 from sceAudioOutGetPortState for a main port opened as 48 kHz, 1024 frames, 16-bit stereo, before and after one output. Pin those fields. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
|
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.
|
What
Adds the test
audio_out_port_state(newAudioOutPortState.cpp): a main port opened withsceAudioOutOpen(user, 0, 0, 1024, 48000, 1)(16-bit stereo) must reportchannel == 2,flag == 0andactiveState == 0fromsceAudioOutGetPortState, before and after one output of 1024 silent frames.mainalready behaves this way, so the test passes onmainunchanged and only fixes the console value in place.The fields
output,volumeandrerouteCounterare not pinned: the console reported output 0, volume -1 and rerouteCounter 5 there, and AnyPS5 reports 1, 127 and 0.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-07 at 04:56 UTC (the console clock was about 1 h 41 min ahead), one run.sceAudioOutGetPortStatereturned 0 and a 16-byte record with channel 2 and flag and active state 0, the same before and after the output. A title process may differ. The probe source and its raw output are in the first comment.On Ubuntu 24.04 under WSL2 with an AddressSanitizer and UBSan build (
BUILD_TESTING=ON),ctest -R audio_out_port_statepasses onmainb0e5efb708. ChangingAudioOut.cppso that a stereo port reports 3 channels makes it fail.tools/check_conventions.py --base upstream/mainpasses.Overlap: the 20 other open pull requests that change the library's
CMakeLists.txtorAudioOutBufferSize.cpp(the files that touch this change'sCMakeLists.txtlines) were checked on 2026-11-08 between 21:35 UTC and 21:43 UTC againstmain0bae53facd(the base of this change is the olderb0e5efb708; it still merges without a conflict, andsceAudioOutGetPortStateis unchanged between the two). Four already conflict withmainwithout this change (boykopovar#12863, boykopovar#5021, boykopovar#12315 and boykopovar#14212), and none conflicts only with this change. The other sixteen merge cleanly with and without it, among them boykopovar#17546, boykopovar#16737, boykopovar#16736, boykopovar#16641, boykopovar#16614 and boykopovar#16597.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Summary by CodeRabbit