diff options
author | 2018-01-28 19:17:23 +0000 | |
---|---|---|
committer | 2018-01-29 17:35:26 +1100 | |
commit | c2e990c5cc527a1e3aadbb2f5a73281db5554a37 (patch) | |
tree | 45c4b6414de5232e46089680a1ab834f0ecbb652 | |
parent | b3f05b309dac0b5d80e5606e6446f2c03abca8ac (diff) |
fix sample end position in sound/gaelco.cpp [dink]
(fixes clicking sounds in various games, verified this with the sample data in ROM, looks correct, we were playing an extra byte from a different sample each time)
-rw-r--r-- | src/devices/sound/gaelco.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/gaelco.cpp b/src/devices/sound/gaelco.cpp index e96b4d77459..57167945cae 100644 --- a/src/devices/sound/gaelco.cpp +++ b/src/devices/sound/gaelco.cpp @@ -106,7 +106,7 @@ void gaelco_gae1_device::sound_stream_update(sound_stream &stream, stream_sample bank = m_banks[((m_sndregs[base_offset + 1] >> 0) & 0x03)]; vol_l = ((m_sndregs[base_offset + 1] >> 12) & 0x0f); vol_r = ((m_sndregs[base_offset + 1] >> 8) & 0x0f); - end_pos = m_sndregs[base_offset + 2] << 8; + end_pos = (m_sndregs[base_offset + 2] << 8) - 1; /* generates output data (range 0x00000..0xffff) */ if (type == 0x08){ |