feat(libSceAudioPropagation): render silence for propagated sources #489
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/489"
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 oneandonlydean on 2026-10-04T07:11:06Z.
Title: feat(libSceAudioPropagation): render silence for propagated sources
What
The SourceRender follow-up to #482 that @ThisIsAkill asked for (comment). The branch is stacked on #482's head (
ac66e708), so until #482 merges GitHub shows its commit here too; this PR is the last commit only.#482 leaves
sceAudioPropagationSourceRenderthrowing. In PPSA21564 the audio engine calls it from each propagated source's voice callback, once per audio grain, so a level with a propagated source stops at the first one that plays.Signature, from the only call site in PPSA21564 (0xf5283e) and PPSA21567 (0xf6efde, see the correction on #481):
(Handle system, const RenderInfo* infos, u32 count), withcount1 at both.RenderInfois{0x010107d6, 0x30}: source handle at +0x10, output buffer at +0x18, buffer size in bytes at +0x20 (grains * 64), and a u32 at +0x28 that both titles set to 2.Behaviour, in #482's model (no acoustic propagation, invalid input throws
std::invalid_argument):RenderInfois checked before anything is written: its descriptor, that its source is a live source ofsystem(requireObject, as the other source calls do), and a non-null output with a non-zero size.count0 or a null array: both titles always pass 1 and no other value has been observed, so there is no evidence for what 0 should do.std::runtime_error): its meaning is unknown, and zeroes are only known to be silence for the format the titles use (PPSA21564 adds the buffer to a float bus afterwards).Changes:
RenderInfoandRenderFormatinAudioPropagation.hpp, the 3-argument declaration, the implementation inExport.cpp, the test, TechnicalDebt.Tested
BUILD_TESTING=ON;ctestpasses (146/146 on #482 + this branch).guest_audio_propagation(#482's test) gets SourceRender cases: one and twoRenderInfos (each output zeroed for its own size and not past it), and the throwing cases (count 0, null array, unknown system, wrong descriptor id or size, a room instead of a source, another system's source, a destroyed source, null or empty output, format 1). The rejected calls leave every output untouched.sceAudioPropagationSourceRender not implemented.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 github-actions[bot] on 2026-10-04T07:11:29Z.
Progress report (
8a64778→be3f06b)📈 System libraries: 78.04% (+0.69%, +22 implemented functions)
✅ 22 implemented
sceAudioPropagationPortalCreatesceAudioPropagationPortalDestroysceAudioPropagationPortalSetAttributessceAudioPropagationRoomCreatesceAudioPropagationRoomDestroysceAudioPropagationSourceCalculateAudioPathssceAudioPropagationSourceCreatesceAudioPropagationSourceDestroysceAudioPropagationSourceGetAudioPathsceAudioPropagationSourceGetAudioPathCountsceAudioPropagationSourceGetRayssceAudioPropagationSourceRendersceAudioPropagationSourceSetAttributessceAudioPropagationSourceSetAudioPathssceAudioPropagationSystemCreatesceAudioPropagationSystemDestroysceAudioPropagationSystemGetRayssceAudioPropagationSystemQueryMemorysceAudioPropagationSystemRegisterMaterialsceAudioPropagationSystemSetAttributessceAudioPropagationSystemSetRayssceAudioPropagationSystemUnregisterMaterial