aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-05 00:30:23 -0800
committerChris Robinson <[email protected]>2014-03-05 00:30:23 -0800
commitfb1f9aad6e2190d43c583ccba8495056d41a1156 (patch)
treec010f32fbe2e5e334ce080065d31d41d6d53c4ea /OpenAL32
parenta1c440bd09d6b0bec36ef84dc474306ce6171b26 (diff)
Expand the sign bit on the initial MSADPCM delta value
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alBuffer.c1
1 files changed, 1 insertions, 0 deletions
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++)
{