X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fsound%2Fym2612.c;h=4b74826c8406d259e12c9f80e6901068e92ed544;hb=453d2a6edadbd6a0977b76eba14961006c907f01;hp=34dabecded2df973aba72e91cd4df3290ef4951e;hpb=538a6098d484745df10aa4923c69581b81e0c09d;p=picodrive.git diff --git a/Pico/sound/ym2612.c b/Pico/sound/ym2612.c index 34dabec..4b74826 100644 --- a/Pico/sound/ym2612.c +++ b/Pico/sound/ym2612.c @@ -1863,26 +1863,7 @@ int YM2612PicoTick_(int n) void YM2612PicoStateLoad_(void) { -#ifndef EXTERNAL_YM2612 - int i, real_A1 = ym2612.addr_A1; - - reset_channels( &ym2612.CH[0] ); - - // feed all the registers and update internal state - for(i = 0; i < 0x100; i++) { - YM2612Write_(0, i); - YM2612Write_(1, ym2612.REGS[i]); - } - - for(i = 0; i < 0x100; i++) { - YM2612Write_(2, i); - YM2612Write_(3, ym2612.REGS[i|0x100]); - } - - ym2612.addr_A1 = real_A1; -#else reset_channels( &ym2612.CH[0] ); -#endif } #ifndef EXTERNAL_YM2612