docs(libSceAudioOut): name what the emulators do with the length and frequency of sceAudioOutOpen #13885
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13885"
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 xXPBSXx on 2026-10-31T11:07:30Z.
What
Adds one entry to the libSceAudioOut technical debt:
sceAudioOutOpenrejects only a length of 0 (SCE_AUDIO_OUT_ERROR_INVALID_SIZE) and a frequency of 0 (SCE_AUDIO_OUT_ERROR_INVALID_SAMPLE_FREQ) and accepts every other value, which is not measured on hardware. shadPS4 and fpPS4 (both PS4) return those errors for any length outside 256 to 2048 in steps of 256 and any frequency but 48000, while KytyPS5 (PS5) rejects a frequency of 0, as this library does, and checks no length, where this library rejects 0. The entry does not say which is right and no code or test changes. 44 of the 53 local titles importsceAudioOutOpen.Tested
Documentation only.
tools/check_conventions.py --base upstream/mainpasses. Based onmain833be4af8d, and it merges withmain602c0e417cwithout a conflict (checked 2026-10-31 11:00 UTC). I read the three emulators at the commits named in the entry (KytyPS5 5e837a9beac82c031868eaad9348d6a48245fb99, shadPS4 0614ce324be092791b758d79f93d9f1ca5b10a81, fpPS4 04cefd43e6fddd1ab033e7980cd356d14c964905) and oursceAudioOutOpeninAudioOut.cpp. I did not measure which lengths and frequencies the local titles pass.Overlap
Checked on 2026-10-31 at 08:02 UTC against
maina76a5f3a37(1608 open pull requests). I took the changed files of each of the 1608 open pull requests fromgit diff --name-onlyagainst its merge base. Seven of them changedocs/dev/debt/libSceAudioOut.md: #13781, #13694, #13676, #12863, #12791, #12765 and #5021.git merge-treeagainst thatmain: this head alone merges cleanly, and so do its pairs with #13781, #13694, #13676, #12791 and #12765. The pairs with #12863 and #5021 conflict, but each of them conflicts withmainon its own. #13676 and #12765 are my own pull requests on the same file; they merge cleanly with this one in either order, so none has to go first. Checked once more on 2026-10-31 at 11:00 UTC againstmain602c0e417cwith this head: the same results for these seven, and of the 82 pull requests opened since 06:30 UTC only #13836 changes these files, and it merges the same with and without this change.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T11:11:59Z.
Review: APPROVED
Reviewed — looks good
The documentation-only change matches the exact-head implementation and the three pinned emulator revisions; I found no blocking issue.
What I ran
Reviewed head
28bd85cb7a90090757cf1322e9c1700a3bbd608fagainst base8f55414024c614b32548254e59e80bd3f0085231; merge preview was clean. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0; no C/C++ compiler was used.Results
git diff --checkUnedited local test and convention output
Sources
sceAudioOutOpenat the reviewed head checks zero length/frequency and does not impose the emulator length/frequency restrictions described in the new debt note.0614ce324be092791b758d79f93d9f1ca5b10a81rejects lengths outside 256–2048 in multiples of 256; its sample-rate check accepts only 48000.04cefd43e6fddd1ab033e7980cd356d14c964905applies the same enumerated lengths and 48000 frequency.5e837a9beac82c031868eaad9348d6a48245fb99rejects zero frequency and contains no length validation inAudioOutOpen.Not verified
No C/C++ build or hardware/console behavior was tested. The new note explicitly says AnyPS5’s acceptance of nonzero lengths/frequencies has not been measured on hardware.