April 2, 2026
4:48 a.m.
From: Anton Baskanov <baskanov@gmail.com> Both x87 and SSE don't accept unsigned integers directly, requiring extra conversion steps. --- dlls/dsound/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 97b2be738b8..61e447aa283 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound); #define FREQ_ADJUST_SHIFT 32 -#define FIXED_0_32_TO_FLOAT(x) ((x) * (1.0f / (1ll << 32))) +#define FIXED_0_32_TO_FLOAT(x) ((int)((x) >> 1) * (1.0f / (1ll << 31))) void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10423