mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
swp00: Correct the level of the decompressed samples
This commit is contained in:
parent
4bf5f6de31
commit
a1b6a8d053
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user