feat(libSceAjm): implement sceAjmBatchJobDecodeSplit and sceAjmBatchJobSetResampleParametersEx #2843
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2843"
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 MathiasDevelopes on 2026-10-10T16:27:22Z.
What
Implements two libSceAjm.native exports that were
NotImplementedstubs:sceAjmBatchJobDecodeSplitqueues a split run job with the stream sideband, exactly assceAjmBatchJobDecodedoes for one input/output pair (it goes throughsceAjmBatchJobRunSplit, so its buffer-list validation applies).sceAjmBatchJobSetResampleParametersEx(info, instance, ratio_start, ratio_change_per_sample, flags, result)with a zero change per sample sets the ratio assceAjmBatchJobSetResampleParametersdoes (same invalid-ratio error). A non-zero change throws, because how the ratio ramps is unknown. The inferred signature and the unknown ramp are recorded in TechnicalDebt.Title reaching them: Watch Dogs: Legion (PPSA01500). Before this change it aborts in the intro with:
With both implemented it gets through the intro, menu and into the loading screen; the Ex calls it makes never hit the non-zero-ramp throw.
Earlier attempts (#867, #1541, #1045, #1554) were closed for lack of a title; this PR provides one.
Tested
guest_ajm_testspasses with two new tests:TestDecodeSplit(an MP3 frame decoded into two output buffers matches a single-buffer decode byte for byte, with the same sideband) andTestResampleParametersEx(zero ramp gives the same PCM and resample info assceAjmBatchJobSetResampleParameters; bad ratios return0x80930005; a non-zero ramp throws and queues nothing).python3 tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-10T16:27:27Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:27:43Z.
Progress report (
57f96fd→e820930)📈 System libraries: 84.58% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceAjmBatchJobDecodeSplitsceAjmBatchJobSetResampleParametersExImported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T17:43:48Z.
A second title that reaches
sceAjmBatchJobSetResampleParametersEx, on Linux: LEGO Horizon Adventures (PPSA14632, Unreal Engine 5).Setup: Arch Linux (kernel 7.2), AMD GPU on RADV, GCC, Release. The build is not plain
main: it is my test branch (maindb343a93plus a few open PRs and two local workarounds for #2548 and failed draws). The game is driven by scripted Cross presses through the intro, save menu, New Game and difficulty select.Without this PR, about 380 s in, right after the new save is written:
With this PR merged (head
e8209307) and the same script:I did not check whether LEGO also calls
sceAjmBatchJobDecodeSplit. Nothing in the log shows it.🤖 Generated with Claude Code