Diff for /np2/sound/opngenc.c between versions 1.10 and 1.13

version 1.10, 2004/07/26 18:52:55 version 1.13, 2011/01/15 14:15:21
Line 164  void opngen_initialize(UINT rate) { Line 164  void opngen_initialize(UINT rate) {
                 decaytable[i] = (long)(freq / OPM_DRRATE);                  decaytable[i] = (long)(freq / OPM_DRRATE);
 #endif  #endif
                 if (attacktable[i] >= EC_DECAY) {                  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) {                  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;          attacktable[62] = EC_DECAY - 1;
Line 435  void opngen_reset(void) { Line 435  void opngen_reset(void) {
                 ch++;                  ch++;
         }          }
         for (i=0x30; i<0xc0; i++) {          for (i=0x30; i<0xc0; i++) {
                 opngen_setreg(0, (REG8)i, 0xff);                  opngen_setreg(0, i, 0xff);
                 opngen_setreg(3, (REG8)i, 0xff);                  opngen_setreg(3, i, 0xff);
                 opngen_setreg(6, (REG8)i, 0xff);                  opngen_setreg(6, i, 0xff);
                 opngen_setreg(9, (REG8)i, 0xff);                  opngen_setreg(9, i, 0xff);
         }          }
 }  }
   
 void opngen_setcfg(REG8 maxch, UINT flag) {  void opngen_setcfg(REG8 maxch, UINT32 flag) {
   
         OPNCH   *ch;          OPNCH   *ch;
         UINT    i;          UINT    i;
Line 477  void opngen_setextch(UINT chnum, REG8 da Line 477  void opngen_setextch(UINT chnum, REG8 da
         ch[chnum].extop = data;          ch[chnum].extop = data;
 }  }
   
 void opngen_setreg(REG8 chbase, REG8 reg, REG8 value) {  void opngen_setreg(REG8 chbase, UINT reg, REG8 value) {
   
         UINT    chpos;          UINT    chpos;
         OPNCH   *ch;          OPNCH   *ch;

Removed from v.1.10  
changed lines
  Added in v.1.13


RetroPC.NET-CVS <cvs@retropc.net>