X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fsound%2Fym2612.c;h=efe5054e9e8d3acc46c33485097838cb9092f5ab;hb=84100c0fd5a5abb6b1e712aa1feb33388362695d;hp=59bb0cc83ef9349153fdf934e4a5cba1c7fba301;hpb=e4fb433cd685d06ddbf0ec367c19a38b75d6ac68;p=picodrive.git diff --git a/Pico/sound/ym2612.c b/Pico/sound/ym2612.c index 59bb0cc..efe5054 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; @@ -1833,12 +1834,7 @@ int YM2612Write_(unsigned int a, unsigned int v) ret = OPNWriteReg(addr, v); break; } -/* - if(ret) { - extern int Scanline; - dprintf("ymw [%i]", Scanline); - } -*/ + return ret; } @@ -2053,10 +2049,8 @@ int YM2612PicoStateLoad2(int *tat, int *tbt) return 0; } -#ifndef EXTERNAL_YM2612 void *YM2612GetRegs(void) { return ym2612.REGS; } -#endif