Diff for /xmil/sound/opmgenc.c between versions 1.3 and 1.8

version 1.3, 2004/08/05 11:46:26 version 1.8, 2005/02/07 16:56:33
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   
   #if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM)
   
   #ifndef         PALMOS
 #include        <math.h>  #include        <math.h>
   #endif
 #include        "sound.h"  #include        "sound.h"
 #include        "sndctrl.h"  #include        "sndctrl.h"
   
Line 118  void opmgen_initialize(UINT rate) { Line 123  void opmgen_initialize(UINT rate) {
         detune2table[3] = D2(3.0);          detune2table[3] = D2(3.0);
 }  }
   
   void opmgen_setvol(UINT vol) {
   
           opmcfg.fmvol = vol;
   }
   
   
 // ----  // ----
   
Line 175  static void set_algorithm(OPMCH *ch, REG Line 185  static void set_algorithm(OPMCH *ch, REG
                 ch->feedback = 0;                  ch->feedback = 0;
         }          }
   
         switch(value & 0xc0) {          switch((value >> 6) & 3) {
                 case 0x40:                  case 0:
                           outd = &opmgen.feedback4;
                           break;
   
                   case 1:
                         outd = &opmgen.outdl;                          outd = &opmgen.outdl;
                         break;                          break;
   
                 case 0x80:                  case 2:
                         outd = &opmgen.outdr;                          outd = &opmgen.outdr;
                         break;                          break;
   
                 default:                  case 3:
                         outd = &opmgen.outdc;                          outd = &opmgen.outdc;
                         break;                          break;
         }          }
Line 463  void opmgen_setreg(REG8 reg, REG8 value) Line 477  void opmgen_setreg(REG8 reg, REG8 value)
         }          }
 }  }
   
   #endif
   

Removed from v.1.3  
changed lines
  Added in v.1.8


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