diff options
author | Arisotura <thetotalworm@gmail.com> | 2021-11-23 18:47:54 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2021-11-23 18:47:54 +0100 |
commit | c04e43702cb516d87ee88b4d77dc1e1946c8185b (patch) | |
tree | 1ef900f62b6914685c5bb3355ccdf6521fc41a0f /src/SPU.cpp | |
parent | 97e599f90f9cc635ff238b702e5b58b3b05b7dd6 (diff) |
SPU: correctly read negative ADPCM initial values. fixes #1261
Diffstat (limited to 'src/SPU.cpp')
-rw-r--r-- | src/SPU.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SPU.cpp b/src/SPU.cpp index 3cd3a66..8ae437e 100644 --- a/src/SPU.cpp +++ b/src/SPU.cpp @@ -394,7 +394,7 @@ void Channel::NextSample_ADPCM() { // setup ADPCM u32 header = FIFO_ReadData<u32>(); - ADPCMVal = header & 0xFFFF; + ADPCMVal = (s32)(s16)(header & 0xFFFF); ADPCMIndex = (header >> 16) & 0x7F; if (ADPCMIndex > 88) ADPCMIndex = 88; |