WASAPI: Fix ClampFloatToS16 to use full s16 range

Changed minimum clamp from -32767 to -32768 to match the full
range of signed 16-bit integers.
This commit is contained in:
Henrik Rydgård committed 2026-08-04 00:37:55 +02:00
1 parent d97f42c225
commit 95e09324a7
1 file changed
+2 -2
+2 -2
View File
@@ -23,8 +23,8 @@ static inline s16 ClampFloatToS16(float f) {
f *= 32768.0f;
if (f >= 32767) {
return 32767;
} else if (f < -32767) {
return -32767;
} else if (f < -32768) {
return -32768;
} else {
return (s16)(s32)f;
}