feat(libSceAjm.native): implement M4AAC decoder #4934
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4934"
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 MarcZX10 on 2026-10-13T05:17:27Z.
What
Implements the AJM M4AAC decoder (codec 2) using the FFmpeg AAC decoder already linked by the project. Adds support for the observed ADTS initialization shape and raw access units, channel/sample format reporting, reset and gapless behavior, plus explicit errors for cases whose console behavior or layouts are not established.
The exact PPSA26344 control flow and remaining compatibility limits are recorded in
docs/dev/debt/libSceAjm.native.md. The regression uses an offline five-frame stereo ADTS fixture and checks decoded samples, channel separation, delay, reset, gapless trimming, raw input, output capacity, partial input and invalid parameters.Tested
guest_ajm_testsbuilt successfully.ctest --test-dir build-m4aac -R '^guest_ajm$' --output-on-failure: passed (1/1).python3 tools/check_conventions.py --base upstream/main --head HEAD: passed.python3 tools/check_test_registration.py build-m4aac: 760 executable(s), 0 built and unrun.git diff --check upstream/main...HEAD: passed.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T05:17:53Z.
Progress report (
7e181fc→a8ffd24)📉 System libraries: 87.9% (-0.02%, -1 reverted functions)
⚠️ 1 went back to stubs
sceAjmInstanceCreateImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T08:41:10Z.
Windows test: head
a8ffd244dmerged onto currentmain42e5edadb(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest with the filterguest_ajm: guest_ajm passed (1 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T01:38:02Z.
Heads-up: #5307 (also yours) implements the same M4AAC decoder, carrying screamm's commit for #3410. Only one of the two can merge. Please say which one continues and close the other, carrying over the tests only one of them has.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T03:30:59Z.
Closing as the same change as #5307, which has the identical code and tests and keeps screamm's authorship from #3410.
If something here is missing from it, please reopen with that part.
Pull request closed