From 6ad1900e4c3fe0b3aae1e78f8db72902ef020f1d Mon Sep 17 00:00:00 2001 From: Devin Acker Date: Sat, 20 Jan 2024 13:47:29 -0500 Subject: sound/gew.cpp: correct interpolation around sample loop point (fixes #11951) (#11957) --- src/devices/sound/gew.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/devices/sound/gew.cpp b/src/devices/sound/gew.cpp index 3aa7948c612..c9d3ea3e500 100644 --- a/src/devices/sound/gew.cpp +++ b/src/devices/sound/gew.cpp @@ -593,6 +593,12 @@ void gew_pcm_device::sound_stream_update(sound_stream &stream, std::vector> TL_SHIFT)) + { + slot.m_prev_sample = csample; + } + if (slot.m_offset >= (slot.m_sample.m_end << TL_SHIFT)) { slot.m_offset -= (slot.m_sample.m_end - slot.m_sample.m_loop) << TL_SHIFT; @@ -600,11 +606,6 @@ void gew_pcm_device::sound_stream_update(sound_stream &stream, std::vector> TL_SHIFT)) - { - slot.m_prev_sample = csample; - } - if ((slot.m_total_level >> TL_SHIFT) != slot.m_dest_total_level) { slot.m_total_level += slot.m_total_level_step; -- cgit v1.2.3