From b26071be310bf30f8d95a85d53bae9307898c4c5 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 19 May 2021 19:30:04 +0200 Subject: [PATCH] sound, fix ym2612 output volume for keyon and level changes --- pico/sound/ym2612.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pico/sound/ym2612.c b/pico/sound/ym2612.c index 1e8680a8..6b3e4bab 100644 --- a/pico/sound/ym2612.c +++ b/pico/sound/ym2612.c @@ -569,7 +569,7 @@ INLINE void FM_KEYON(int c , int s ) } else { SLOT->volume = MIN_ATT_INDEX; } -// recalc_volout(SLOT); + recalc_volout(SLOT); ym2612.slot_mask |= (1<tl = (v&0x7f)<<(ENV_BITS-7); /* 7bit TL */ -// if (SLOT->state > EG_REL) -// recalc_volout(SLOT); + if (SLOT->state > EG_REL) + recalc_volout(SLOT); } /* set attack rate & key scale */ -- 2.39.5