feat(ngs2): report the frame info of every supported PCM type #12302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12302"
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 edubox on 2026-10-28T08:30:08Z.
What
sceNgs2GetWaveformFrameInfoonly answeredPCM_I16L; every other PCM type threw, even though the parser and the renderer already accept U8, I24L, I32L, F32L and F64L. It now derives the frame size fromNgs2PcmSampleBytes, so every little-endian PCM type the parser supports answers channels * sample bytes, one sample per frame, one unit and no delay.I16Band VAG still throw.Tested
Linux (CachyOS), GCC 16.2.1, Release.
ngs2_parse_testscovers all six PCM types across 1-8 channels and four sample rates, and keepsI16B,F32Band the unknown ids in the list of types that must throw.ngs2_atrac9_testspasses. Not tested with a title: PPSA02195 requested F32L frame info during startup on a tree with other local changes.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T08:43:08Z.
Review: APPROVED
Reviewed the frame-size path against
Ngs2PcmSampleBytes: it has explicit byte widths for the six PCM formats this change enables and throws for the remaining types, so the new branch stays limited to supported formats. The expanded tests check all six formats across 1–8 channels and several sample rates, verify all four output fields, and preserve the unsupported-format cases. The current hosted Windows job and conventions/eligibility checks pass; Linux is skipped by the PR workflow, and the author reports the focused Linux tests. I found no blocking issue in this diff.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T09:14:49Z.
Review: CHANGES_REQUESTED
The current rebased head still has a contribution-checklist blocker: it claims
Unblocks: PPSA02195while stating that no Game bring-up discussion exists. The repository checklist requires the title ID and discussion, ornone. Please add the discussion link or change the line toUnblocks: none. The code review on the earlier head does not resolve this current-head checklist issue; I have not re-approved the rebased revision.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:26:49Z.
Review: CHANGES_REQUESTED
Re-review — changes requested for current-main integration
The author has fixed the checklist issue: the current description now says
Unblocks: none. The exact head8f53a5351eretains the previously reviewed PCM frame-info implementation, and the author reports thengs2_*selections passing 21/21 inlibSceNgs2.nativeand 9/9 inlibSceNgs2, including parse and ATRAC9 tests; conventions also pass. I did not rerun these tests locally.The PR is still based on main
4c7d275bef; current upstream main isaaccd0ba39b7. Please refresh onto current main, rerun the focused NGS2 tests and overlap/convention checks on the exact head, then I can re-evaluate merge readiness. I found no new behavior defect in the reported update; this request is for current-main integration.