feat(ajm): implement sceAjmBatchJobSetResampleParameters and sceAjmBatchJobGetResampleInfo #1018
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1018"
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 Raghav314 on 2026-10-07T00:07:03Z.
What
frequency / output rate (observed 42763 / 48000 = 0.8909) and clamps it to [0.125, 4].
Each job fills its output from held samples first and decodes more only when needed.
At ratio 1.0 the resampler is bypassed and output is unchanged.
float ratio, int32 num_samples and 32 zero bytes. num_samples is the number of decoded
samples the resampler still holds. FMOD treats num_samples <= 2 as the end of a voice;
the resampler keeps two look-ahead samples, which matches that.
return SCE_AJM_ERROR_INVALID_PARAMETER.
Tested
Linux (CachyOS), x86-64, GCC, 7800X3D / RTX 4090.
midpoints match the interpolator; each job fills its output; the drain ends with <= 2 held;
ClearContext restarts the stream; invalid ratios are refused. Covers Opus, MP3 and AT9
(the AT9 case uses a silent superframe built by testing against LibAtrac9).
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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T00:07:26Z.
Progress report (
ee391a5→60e1653)📈 System libraries: 86.69% (+0.07%, +2 implemented functions)
✅ 2 implemented
sceAjmBatchJobGetResampleInfosceAjmBatchJobSetResampleParametersImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T00:13:01Z.
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.
main)docs/dev/TechnicalDebt.mdL163docs/dev/TechnicalDebt.mdL163