--- np2/cbus/board118.c 2003/12/08 00:55:30 1.2 +++ np2/cbus/board118.c 2005/02/09 20:11:33 1.5 @@ -60,7 +60,6 @@ static void IOOUTCALL ymf_o18e(UINT port S98_put(EXTEND2608, opn.extreg, dat); opn.reg[opn.extreg + 0x100] = dat; if (opn.extreg >= 0x30) { - sound_sync(); opngen_setreg(3, opn.extreg, dat); } else { @@ -151,15 +150,19 @@ void board118_reset(void) { fmtimer_reset(0xc0); opngen_setcfg(3, OPN_STEREO | 0x038); cs4231io_reset(); - soundrom_load(0xcc000, "118"); + soundrom_load(0xcc000, OEMTEXT("118")); fmboard_extreg(extendchannel); } void board118_bind(void) { + fmboard_fmrestore(0, 0); + fmboard_fmrestore(3, 1); + psggen_restore(&psg1); + fmboard_rhyrestore(&rhythm, 0); sound_streamregist(&opngen, (SOUNDCB)opngen_getpcm); sound_streamregist(&psg1, (SOUNDCB)psggen_getpcm); - sound_streamregist(&rhythm, (SOUNDCB)rhythm_getpcm); + rhythm_bind(&rhythm); cs4231io_bind(); cbuscore_attachsndex(0x188, ymf_o, ymf_i); iocore_attachout(0xa460, ymf_oa460);