mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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:
1 parent
d97f42c225
commit
95e09324a7
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user