fix adpcm volume issue

commit f8b76ee612e103af28cd209bc181922e3ba57605 of https://github.com/nukeykt/YM2608-LLE
by nukeykt
This commit is contained in:
tildearrow 2024-04-28 00:45:19 -05:00
parent 674db018cf
commit ff9d5370c5

View file

@ -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)
{