fix(ajm): decode an ATRAC9 run's whole input and follow gapless segments #2052
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2052"
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 esatturan on 2026-10-09T06:00:10Z.
What
SetGaplessDecodewith the reset flag,ClearContext, initialization) starts a new segment.RUN_MULTIPLE_FRAMES: FMOD in PPSA29141 puts two run jobs in one batch, with the second's input right after the whole of the first's. MP3 and Opus run jobs are unchanged.Tested
Windows 11, i7-13650HX, RTX 4070 Laptop, MinGW-w64 GCC 15.2.
guest_ajm:TestAt9GaplessSegments(a total of 512 samples over a 1024-sample superframe: the first run stops after two frames with input left, the second gets the two after it) andTestAt9RunDecodesWholeInput. Both fail onmain.cteston currentmain(c6e3aa76) merged with this branch, the other LEGO Party! PRs and #1482: 547/547 pass. On Windows,main'slibsstep currently fails withduplicate patched export name: LibwuIonIBw: #1714 addedAPS5_EXPORTs forsceVideoOutAddVrrActiveStatusEventandsceVideoOutAddVrrStatusFlagsPrivilege, whose names the NID table already maps. Those two lines were removed locally for the run.--module-dirfor its plugins, and #846 no longer merges with today'smain, so the title was not converted and run again on it.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 oneandonlydean on 2026-10-09T09:22:58Z.
Three things before this can go in:
Ajm.cpp(thesegmentSamplesandRunAt9blocks) and inAudioOut2Context.cpp.APS5_DUMP_AUDIOdump and the new batch traces; they're a separate change.guest_ajmcase that fails on main: a gapless total shorter than the frames, then a second run that gets the frames after it.It conflicts with main in TechnicalDebt now, so please rebase when you push.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T23:31:18Z.
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.mdL361Imported from boykopovar/AnyPS5. Originally posted by esatturan on 2026-10-09T23:35:32Z.
Done, rebased on current
main:Ajm.cpp, and dropped theAudioOut2Context.cppchange (APS5_DUMP_AUDIO) and the new batch traces.TestAt9GaplessSegmentstoguest_ajm. The gapless total is 512 samples over a 1024-sample superframe. The first run stops after two frames and leaves input; the second run gets the two frames after the total. Onmainthe first run consumes the whole superframe, so the test fails.TestAt9RunDecodesWholeInputfor the other half of the change: a run withoutRUN_MULTIPLE_FRAMESdecodes the whole superframe. It also fails onmain. The description now states this half, and TechnicalDebt records it, since the console's behaviour there is not verified.