From: kub Date: Wed, 19 May 2021 17:30:04 +0000 (+0200) Subject: sound, fix ym2612 output volume for keyon and level changes X-Git-Tag: v2.00~522 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b26071be310bf30f8d95a85d53bae9307898c4c5;p=picodrive.git sound, fix ym2612 output volume for keyon and level changes --- 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 */