X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fsound%2Fym2612.c;h=0c267392072977df56bb71d1af00dd7ff5a1b91f;hb=be297089d0eef9747c6917f1dae70dfc7046a8e8;hp=56c363a1654f0a65b4ff602958336c1e242895c9;hpb=f8a6410104d1294b75fbcb0f63c1dc39e3a5c40c;p=picodrive.git diff --git a/Pico/sound/ym2612.c b/Pico/sound/ym2612.c index 56c363a..0c26739 100644 --- a/Pico/sound/ym2612.c +++ b/Pico/sound/ym2612.c @@ -1668,6 +1668,8 @@ void YM2612Init_(int clock, int rate) ym2612.OPN.ST.clock = clock; ym2612.OPN.ST.rate = rate; + OPNSetPres( 6*24 ); + /* Extend handler */ YM2612ResetChip_(); } @@ -1680,7 +1682,6 @@ void YM2612ResetChip_(void) memset(ym2612.REGS, 0, sizeof(ym2612.REGS)); - OPNSetPres( 6*24 ); set_timers( 0x30 ); /* mode 0 , timer reset */ ym2612.REGS[0x27] = 0x30;