From a1b6a8d053ba69d0b48787e7b48885b717e7e2f1 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Wed, 8 Nov 2023 01:11:35 +0100 Subject: [PATCH] swp00: Correct the level of the decompressed samples --- src/devices/sound/swp00.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/swp00.cpp b/src/devices/sound/swp00.cpp index db9277b592c..830baba8e0a 100644 --- a/src/devices/sound/swp00.cpp +++ b/src/devices/sound/swp00.cpp @@ -359,7 +359,7 @@ void swp00_device::device_start() // Delta-packed samples decompression. for(int i=0; i<128; i++) { - s16 base = ((i & 0x1f) << (7+(i >> 5))) + (((1 << (i >> 5))-1) << 12); + s16 base = ((i & 0x1f) << (5+(i >> 5))) + (((1 << (i >> 5))-1) << 10); m_dpcm[i | 0x80] = - base; m_dpcm[i] = + base; }