From fb1f9aad6e2190d43c583ccba8495056d41a1156 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Mar 2014 00:30:23 -0800 Subject: Expand the sign bit on the initial MSADPCM delta value --- OpenAL32/alBuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 8f19ae0a..b9d3cd6d 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1311,6 +1311,7 @@ static void DecodeMSADPCMBlock(ALshort *dst, const ALmsadpcm *src, ALint numchan { delta[i] = *(src++); delta[i] |= *(src++) << 8; + delta[i] = (delta[i]^0x8000) - 0x8000; } for(i = 0;i < numchans;i++) { -- cgit v1.2.3