feat(ajm): decode Opus mapping family 255 with several channels #5517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5517"
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 ps54all on 2026-10-13T22:03:38Z.
Depends on #5075: this branch is built on its head
485f638a5; only the last commit belongs to this PR.What
#5075 accepts Opus mapping family 255 for one channel. Metal Gear Solid 4 initializes its intro movie's decoder with
4, 48000, 255(12 bytes, nothing after the family), so the stream count and channel mapping that family 255 needs (RFC 7845 §5.1.1) are not in the initialization words.OpusHeadwith that layout.Tested
Windows 11, RTX 3080, WinLibs GCC 15.2.0 r7, Release.
guest_ajmgainsTestOpusMultistreamFamily255. #5075's test packets are stereo, so each is turned into a two-stream packet (a self-delimited copy followed by the packet). A4, 48000, 255instance must then decode it to four channels, both pairs sample-equal to a2, 48000, 0decode of the original, with the full input consumed. #5075's refusal of2, 48000, 255is replaced by this;1, 48000, 2is still refused. Without the change the test aborts (0xc0000409); with it, it passes.check_conventions.py --base origin/mainpasses.sceAjmBatchJobInitialize (Opus mapping family ...) not implemented. With this (plus #5411, #5514, #5515, #5425) it plays with sound, and the game reaches gameplay (about 3 fps).Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository🤖 Generated with Claude Code