aboutsummaryrefslogtreecommitdiff
path: root/src/SPU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SPU.cpp')
-rw-r--r--src/SPU.cpp2
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;