Files
AnyPS5/docs/dev
JAB-devandClaude Sonnet 5.5 8ae66c36b3 fix(libSceNgs2): convert PCM_I16L render output as the PS5 module does
PS5 firmware 3.20 and 4.03 write trunc(clamp(x * 32767.0f, -32767, 32767)) into a PCM_I16L render buffer, with the product in float, NaN written as 0 and -32768 never written; ours rounded x * 32768 to nearest, wrote -32768 for -1 and threw on a nonfinite sample. Combined with the sampler's exact x / 32768 input, an I16 source now comes back one step toward zero, so the existing render, stream and gain tests expect that, and a new sweep checks the measured values on 1, 2, 6 and 8 channels.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 18:37:47 +02:00
..
…