feat(libSceAjm): support ratio ramp in sceAjmBatchJobSetResampleParametersEx #5647
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5647"
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 pushkarreddyy on 2026-10-14T03:32:45Z.
What
Supports linear sample-rate ratio ramping across emitted output frames in
sceAjmBatchJobSetResampleParametersExforlibSceAjm.native:Resamplerstate to trackchange(ratio_change_per_sample).ResamplerProduceto linearly adjustratiobychangeon each emitted output sample frame, clamped at0.0f.JobKind::SetResampleParametersto parse bothratioandchangefromjob.parameters.sceAjmBatchJobSetResampleParametersExto validateratio_start(isfinite,> 0.0f) andratio_change_per_sample(isfinite), packing both parameters into the batch header.docs/dev/debt/libSceAjm.native.md.Tested
core/libs/tests/GuestAjm.cppunderTestResampleParametersEx:ratio_start(0.0f,-1.0f,NaN,INFINITY) with0x80930005.ratio_change_per_sample(NaN,INFINITY,-INFINITY) with0x80930005.1.0fstart,0.001fchange over 512 samples ramping to ~1.512f), confirming output PCM generation and verification viasceAjmBatchJobGetResampleInfo.python tools/check_conventions.py --base origin/mainChecklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T03:33:26Z.
Progress report (
63fb0cd→3faeae8)📉 System libraries: 88.33% (-0.03%, -1 reverted functions)
⚠️ 1 went back to stubs
sceAjmBatchJobSetResampleParametersExImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:08:21Z.
Checked build + ctest (guest_ajm and the Ajm tests pass) and that the new test fails without the change.
Added one commit: the TechnicalDebt line stated the ramp rule as fact, but no source confirms it (KytyPS5 ignores the change, prosper stubs it, and the console does not export the batch builders, per #3468). It now says it is assumed: added after each emitted output frame, clamped at zero, kept across batches. Merging once CI is green.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-14T13:30:06Z.
Thanks @adriadam10! All CI checks (
conventions,eligibility,report) are green and passing cleanly.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:34:06Z.
Checked build + ctest (guest_ajm and the Ajm tests pass) on the current head; the only change since the last review is the TechnicalDebt wording that marks the ramp rule as assumed. Merging once the full Build is green.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-14T13:54:22Z.
Thanks @adriadam10 its passing now ready for merging
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:58:34Z.
Checked on the current head merged onto main: build and
guest_ajmpass, and the new test fails without the change. The ramp rule (added after each emitted output frame, clamped at zero, kept across batches) is recorded as assumed in the TechnicalDebt entry, since no source confirms it. Merging once the full Build is green.