libSceAc3Enc: Encode, EncodeAsync, Flush, WaitEncode and IsEncoding need readings from the firmware module #28574
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 cmsierrave-coder on 2026-12-01T20:44:00Z.
What happens
With PR #28563 (
feat(libSceAc3Enc): initialize AC-3 encoders through AJM),sceAc3EncCreateEncodercreates a live AJMI codec 7 encoder handle andsceAc3EncDeleteEncoderdestroys it. The remaining live-handle paths still throw or assume no async encode can start because only their handle check is known:sceAc3EncEncodesceAc3EncEncodeAsyncsceAc3EncFlushsceAc3EncWaitEncodesceAc3EncIsEncodingWhat's known
system/priv/lib/libSceAc3Enc.sprx(SHA-256caa3e58b86fbd1fbf0b9cac022c4a18650129182fe7dce7dc5088aa5a6382a38) was read forsceAc3EncCreateEncoderand the handle check/destroy insceAc3EncDeleteEncoder; the remaining encoder exports were listed as unread.docs/dev/debt/libSceAc3Enc.mdnotes that0xc024holds the active encoder handle (-1when absent) and0xc02cholds the async slot (-1when idle).What would settle it
@BunnyFl, if your 13.42 dump has it, from firmware 13.42's
system/priv/lib/libSceAc3Enc.sprx, forsceAc3EncEncode,sceAc3EncEncodeAsync,sceAc3EncFlush,sceAc3EncWaitEncode, andsceAc3EncIsEncoding:RunBufferRa/ControlBufferRa/StartBuffer/Wait), job flags, input/output buffer sizes, sideband output layout, and AJMI/job-status error mapping.0xc02c(and any saved output/status state) is set, polled, and cleared acrossEncodeAsync,IsEncoding,WaitEncode,Flush, andDeleteEncoder.libSceAc3Enc.sprx, the expected PCM sample format, frame size, and channel layout for setupmode0 vs 1 (AJM flags0x31/0x131, setup record mode0/2).What was checked
mainat18913472847, PR #28563 (b510cc3e994), issue #21863, and open issues/PRs forlibSceAc3Enc.AI-assisted: yes