Diff for /np2/sound/rhythmc.c between versions 1.3 and 1.7

version 1.3, 2003/12/04 06:41:23 version 1.7, 2004/02/18 18:29:29
Line 2 Line 2
 #include        <math.h>  #include        <math.h>
 #include        "wavefile.h"  #include        "wavefile.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "bios.h"  #include        "pccore.h"
 #include        "sound.h"  #include        "sound.h"
 #include        "rhythm.h"  #include        "rhythm.h"
   
Line 37  static BOOL pcmload(RHYTHMPCM *pcm, cons Line 37  static BOOL pcmload(RHYTHMPCM *pcm, cons
         UINT            pos;          UINT            pos;
         BYTE            work[256];          BYTE            work[256];
   
         bios_getpath(path, fname, sizeof(path));          getbiospath(path, fname, sizeof(path));
         fh = file_open_rb(path);          fh = file_open_rb(path);
         if (fh == FILEH_INVALID) {          if (fh == FILEH_INVALID) {
                 goto pld_err1;                  goto pld_err1;
Line 172  void rhythm_update(RHYTHM rhy) { Line 172  void rhythm_update(RHYTHM rhy) {
         } while(++r < rterm);          } while(++r < rterm);
 }  }
   
 void rhythm_setreg(RHYTHM rhy, BYTE reg, BYTE value) {  void rhythm_setreg(RHYTHM rhy, REG8 reg, REG8 value) {
   
         RHYTHMCH        *r;          RHYTHMCH        *r;
         BYTE            bit;          REG8            bit;
         int                     i;          int                     i;
   
         if (reg == 0x10) {          if (reg == 0x10) {
Line 197  void rhythm_setreg(RHYTHM rhy, BYTE reg, Line 197  void rhythm_setreg(RHYTHM rhy, BYTE reg,
                         r++;                          r++;
                 }                  }
         }          }
         else if (reg == 0x11) {                                                                         // ver0.28          else if (reg == 0x11) {
                 sound_sync();                  sound_sync();
                 rhy->vol = (~value) & 0x3f;                  rhy->vol = (~value) & 0x3f;
                 rhythm_update(rhy);                  rhythm_update(rhy);

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


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