--- np2/sound/opngenc.c 2004/07/26 18:52:55 1.10 +++ np2/sound/opngenc.c 2007/10/28 16:01:35 1.12 @@ -435,14 +435,14 @@ void opngen_reset(void) { ch++; } for (i=0x30; i<0xc0; i++) { - opngen_setreg(0, (REG8)i, 0xff); - opngen_setreg(3, (REG8)i, 0xff); - opngen_setreg(6, (REG8)i, 0xff); - opngen_setreg(9, (REG8)i, 0xff); + opngen_setreg(0, i, 0xff); + opngen_setreg(3, i, 0xff); + opngen_setreg(6, i, 0xff); + opngen_setreg(9, i, 0xff); } } -void opngen_setcfg(REG8 maxch, UINT flag) { +void opngen_setcfg(REG8 maxch, UINT32 flag) { OPNCH *ch; UINT i; @@ -477,7 +477,7 @@ void opngen_setextch(UINT chnum, REG8 da ch[chnum].extop = data; } -void opngen_setreg(REG8 chbase, REG8 reg, REG8 value) { +void opngen_setreg(REG8 chbase, UINT reg, REG8 value) { UINT chpos; OPNCH *ch;