From ff9d5370c5d4229ca544ef3590e1506da3ff8c26 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 28 Apr 2024 00:45:19 -0500 Subject: [PATCH] fix adpcm volume issue commit f8b76ee612e103af28cd209bc181922e3ba57605 of https://github.com/nukeykt/YM2608-LLE by nukeykt --- extern/YM2608-LLE/fmopna_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extern/YM2608-LLE/fmopna_impl.c b/extern/YM2608-LLE/fmopna_impl.c index b37331649..f629a5479 100644 --- a/extern/YM2608-LLE/fmopna_impl.c +++ b/extern/YM2608-LLE/fmopna_impl.c @@ -5164,10 +5164,10 @@ void FMOPNA_2612_Clock(fmopna_2612_t* chip, int clk) if ((chip->ad_dsp_w43[1] & 1) != 0 && (chip->ad_dsp_w43[0] & 2) == 0) chip->ad_dsp_w45 = chip->ad_dsp_w40; - if (chip->ad_dsp_w45 == 0x1fff || (chip->ad_dsp_w45 & 0x1ffe) == 0) + if ((chip->ad_dsp_w45 >> 3) == 0x1fff || ((chip->ad_dsp_w45 >> 3) & 0x1ffe) == 0) chip->ad_output = 0; else - chip->ad_output = chip->ad_dsp_w45; + chip->ad_output = chip->ad_dsp_w45 >> 3; if ((chip->ad_code_ctrl_l & 0x4000) != 0 && (chip->ad_dsp_load_alu1[0] & 1) == 0) {