Files
AnyPS5/docs
JAB-devandClaude Sonnet 5.5 3f18aed2a5 fix(libSceNgs2): clamp the mastering gain to +-32 as the PS5 module does
The PS5 libSceNgs2.native (firmware 3.20 and 4.03) accepts every value of the mastering gain param 0x30000004 with return code 0, clamps each level to [-32, 32] (so +-inf gives +-32) and keeps NaN, which then gives NaN samples. Ours threw on NaN and inf and did not clamp. A NaN sample in a PCM_I16L render buffer now throws, since the PS5 conversion was only measured into float buffers.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-24 00:10:35 +02:00
..