--- np2/sound/opngenc.c 2004/07/26 18:52:55 1.10 +++ np2/sound/opngenc.c 2011/01/15 14:15:21 1.13 @@ -164,10 +164,10 @@ void opngen_initialize(UINT rate) { decaytable[i] = (long)(freq / OPM_DRRATE); #endif if (attacktable[i] >= EC_DECAY) { - TRACEOUT(("attacktable %d %d %d", i, attacktable[i], EC_DECAY)); + TRACEOUT(("attacktable %d %d %ld", i, attacktable[i], EC_DECAY)); } if (decaytable[i] >= EC_DECAY) { - TRACEOUT(("decaytable %d %d %d", i, decaytable[i], EC_DECAY)); + TRACEOUT(("decaytable %d %d %ld", i, decaytable[i], EC_DECAY)); } } attacktable[62] = EC_DECAY - 1; @@ -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;