libSceAudioPropagation: call signatures and struct layouts recovered from PPSA21567 #481
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 ThisIsAkill on 2026-10-03T21:02:19Z.
libSceAudioPropagation is unimplemented: all 22 exports throw, and TechnicalDebt says their signatures are assumed. PPSA21567 (Astro Bot) calls
sceAudioPropagationSystemQueryMemoryduring audio init and stops there. Below are the call shapes recovered so nobody has to redo them, and where several of the assumed signatures differ.How
SystemMemorylayout. Both only stub the API.{u32 id; size_t size}descriptor at +0, which gives the struct sizes below.Calls (handles are 8 bytes)
Export.cpp(const Options*, SystemMemory*)(const Options*, const SystemMemory*, Handle* out)(Handle system), result not checked(Handle system, const Attribute*, u32 count)(Handle system, const Material*, Handle* out)(Handle material)(Handle system, u32 material_id)(Handle system, Ray* rays, u32* count), result not checked; the title recounts valid rays itself(Handle system, const Ray*, u32 count)(Handle system, Handle* out)(Handle system, Handle room)(Handle room)(Handle system, const PortalParams*, Handle* out)(Handle system, Handle portal)(Handle portal)(Handle portal, const Attribute*, u32 count)(Handle, const void*)(Handle system, Handle* out)(Handle, const void* params, Handle* out)(Handle system, Handle source)(Handle source)(Handle source, const Attribute*, u32 count)(Handle, const void*)(Handle source, u32* count)(Handle source, u32 index, Handle* out), called for index < count(Handle, u32, void*)(Handle source, Ray* rays, u32* count)(Handle source, const Ray*, u32 rayCount, u32, PathData* paths /* 0xe0 each */, u32 pathCount)(Handle, const void*)(Handle source, const PathEntry*, u32 count)(Handle, const void*, u32)(Handle system, const RenderInfo*)(Handle source, const void*, void*)Structs (descriptor id / size as the title writes them)
SystemMemory0x010107d4 / 0x30:cpuMem+0x10,cpuSize+0x18,gpuMem+0x20,gpuSize+0x28. The title zeroes it and sets the descriptor beforeQueryMemory. It then reads onlycpuSize, allocates that many bytes (16-aligned), zeroes them, stores the pointer at +0x10 and passes the struct toSystemCreate. The GPU fields are never touched.Options: 0x38 bytes copied from a template in the title; one u32 is set at +0x20. Layout otherwise unknown.Attribute: 0x20 bytes,{u32 id; void* value @+0x08; size_t valueSize @+0x10; u32 @+0x18 (0)}. Ids seen: system 0x20000 (8-byte value); source 7, 5 and others (8- and 16-byte values); portal: 4 attributes.Material0x010107d1 / 0x40.Ray0x010107d7 / 0x58 (64 per system call, prepared by the title).PortalParams0x010107d8 / 0x60 (four 16-byte rows at +0x10, then two room handles at +0x50/+0x58).RenderInfo0x010107d6 / 0x30 (source handle +0x10, buffer +0x18, size +0x20, u32 +0x28).PathEntry0x010107d9 / 0x28 (path handle +0x10, path data pointer +0x18, float +0x20 = 1.0).Error handling
At every checked site the title only tests
eax != 0. No error code value can be confirmed from its checks.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-04T06:12:29Z.
Correction to the table above:
SourceRendertakes a third argument,u32 count, and PPSA21567 passes 1. It is(Handle system, const RenderInfo*, u32 count), not(Handle system, const RenderInfo*).In PPSA21567, the only call site (0xf6efde) sets
edxbefore the call, which I missed:The RenderInfo fields: +0x10 from
[rbx+0xb0], +0x18 the output buffer, +0x20[rbx+0x23d0] << 6bytes, +0x28 = 2. Thanks to @oneandonlydean, who found the third argument in PPSA21564 (see #482).Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-05T00:47:48Z.
Resolved by #482 and #489.