From 23a70381c62442c9f4b5fe85e0741d88ca54bc25 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 28 Aug 2023 04:06:25 -0500 Subject: [PATCH] fix type limits, part 2 --- extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cd6fe8e8..3650cdaa 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp @@ -83,7 +83,7 @@ void k053260_core::voice_t::tick(u32 cycle) } // calculate output - s32 output = (m_adpcm ? m_output : sign_ext(m_data, 8)) * s32(m_volume); + s32 output = (m_adpcm ? m_output : sign_ext_nomax(m_data, 8)) * s32(m_volume); // use math for now; actually fomula unknown m_out[0] = (output * m_host.pan_lut(m_pan, 0)) >> 7; m_out[1] = (output * m_host.pan_lut(m_pan, 1)) >> 7;