mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 10:32:40 +00:00
fix adpcm volume issue
commit f8b76ee612e103af28cd209bc181922e3ba57605 of https://github.com/nukeykt/YM2608-LLE by nukeykt
This commit is contained in:
parent
674db018cf
commit
ff9d5370c5
1 changed files with 2 additions and 2 deletions
4
extern/YM2608-LLE/fmopna_impl.c
vendored
4
extern/YM2608-LLE/fmopna_impl.c
vendored
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue