From: kub Date: Wed, 9 Jun 2021 20:15:58 +0000 (+0200) Subject: sound, improve FM output on load/resume X-Git-Tag: v2.00~512 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=196e2929f715bc926baeb7fee46e3d32ec4b9d92;p=picodrive.git sound, improve FM output on load/resume --- diff --git a/pico/sound/ym2612.c b/pico/sound/ym2612.c index 6b3e4bab..75d33de6 100644 --- a/pico/sound/ym2612.c +++ b/pico/sound/ym2612.c @@ -2185,6 +2185,7 @@ int YM2612PicoStateLoad2(int *tat, int *tbt) blk = ym2612.CH[c].block_fnum >> 11; ym2612.CH[c].kcode= (blk<<2) | opn_fktable[fn >> 7]; ym2612.CH[c].fc = fn_table[fn*2]>>(7-blk); + refresh_fc_eg_chan( &ym2612.CH[c] ); } // chans 4,5,6 ptr = &ym2612.REGS[0x1b8]; @@ -2205,6 +2206,7 @@ int YM2612PicoStateLoad2(int *tat, int *tbt) blk = ym2612.CH[c].block_fnum >> 11; ym2612.CH[c].kcode= (blk<<2) | opn_fktable[fn >> 7]; ym2612.CH[c].fc = fn_table[fn*2]>>(7-blk); + refresh_fc_eg_chan( &ym2612.CH[c] ); } for (c = 0; c < 3; c++) {