From 82630317b09f467b4a78be625f2be32b29a1c7c2 Mon Sep 17 00:00:00 2001 From: cam900 Date: Mon, 12 Dec 2022 16:51:01 +0900 Subject: [PATCH] Fix K053260 reloading counter --- extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp b/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp index cccdbbf58..bf056b816 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp @@ -59,6 +59,7 @@ void k053260_core::voice_t::tick() { m_bitpos -= 8; } + m_counter = bitfield(m_pitch, 0, 12); } m_data = m_host.m_intf.read_sample(bitfield(m_addr, 0, 21)); // fetch ROM if (update) @@ -76,6 +77,7 @@ void k053260_core::voice_t::tick() if (m_loop) { m_addr = m_start; + m_remain = m_length; m_adpcm_buf = 0; } else