sound, improve FM output on load/resume
authorkub <derkub@gmail.com>
Wed, 9 Jun 2021 20:15:58 +0000 (22:15 +0200)
committerkub <derkub@gmail.com>
Wed, 9 Jun 2021 20:15:58 +0000 (22:15 +0200)
pico/sound/ym2612.c

index 6b3e4ba..75d33de 100644 (file)
@@ -2185,6 +2185,7 @@ int YM2612PicoStateLoad2(int *tat, int *tbt)
                blk = ym2612.CH[c].block_fnum >> 11;\r
                ym2612.CH[c].kcode= (blk<<2) | opn_fktable[fn >> 7];\r
                ym2612.CH[c].fc = fn_table[fn*2]>>(7-blk);\r
+               refresh_fc_eg_chan( &ym2612.CH[c] );\r
        }\r
        // chans 4,5,6\r
        ptr = &ym2612.REGS[0x1b8];\r
@@ -2205,6 +2206,7 @@ int YM2612PicoStateLoad2(int *tat, int *tbt)
                blk = ym2612.CH[c].block_fnum >> 11;\r
                ym2612.CH[c].kcode= (blk<<2) | opn_fktable[fn >> 7];\r
                ym2612.CH[c].fc = fn_table[fn*2]>>(7-blk);\r
+               refresh_fc_eg_chan( &ym2612.CH[c] );\r
        }\r
        for (c = 0; c < 3; c++)\r
        {\r