--- xmil/sound/psggenc.c 2004/08/05 11:30:12 1.2 +++ xmil/sound/psggenc.c 2004/08/13 04:08:33 1.4 @@ -4,10 +4,6 @@ #include "sndctrl.h" -// extern int s_cnt; -// extern DWORD basedclk; - - PSGGENCFG psggencfg; const UINT8 psggen_deftbl[0x10] = @@ -91,15 +87,10 @@ void psggen_setreg(PSGGEN psg, REG8 reg, UINT freq; UINT ch; -// if (romeo_exist) { -// juliet2_YMF288A(reg, value, (basedclk * s_cnt / 1600)); -// return; -// } - - reg &= 15; -// if (reg < 14) { -// sound_sync(); -// } + if (reg >= 14) { + return; + } + sound_sync(); ((UINT8 *)&psg->reg)[reg] = value; switch(reg) { case 0: @@ -131,7 +122,6 @@ void psggen_setreg(PSGGEN psg, REG8 reg, // keydisp_psgmix(psg); psg->mixer = ~value; psg->puchicount = psggencfg.puchidec; -// TRACEOUT(("psg %x 7 %d", (long)psg, value)); break; case 8: @@ -147,7 +137,6 @@ void psggen_setreg(PSGGEN psg, REG8 reg, } psg->tone[ch].puchi = psggencfg.puchidec; psg->puchicount = psggencfg.puchidec; -// TRACEOUT(("psg %x %x %d", (long)psg, reg, value)); break; case 11: