--- np2/sound/opngen.h 2004/07/26 18:52:55 1.10 +++ np2/sound/opngen.h 2007/07/20 14:39:11 1.12 @@ -1,6 +1,10 @@ enum { +#if defined(SUPPORT_PX) + OPNCH_MAX = 30, +#else // defined(SUPPORT_PX) OPNCH_MAX = 12, +#endif // defined(SUPPORT_PX) OPNA_CLOCK = 55466 * 72, OPN_CHMASK = 0x8000, @@ -168,7 +172,7 @@ void opngen_setVR(REG8 channel, REG8 val void opngen_reset(void); void opngen_setcfg(REG8 maxch, UINT flag); void opngen_setextch(UINT chnum, REG8 data); -void opngen_setreg(REG8 chbase, REG8 reg, REG8 value); +void opngen_setreg(REG8 chbase, UINT reg, REG8 value); void opngen_keyon(UINT chnum, REG8 value); void SOUNDCALL opngen_getpcm(void *hdl, SINT32 *buf, UINT count);