Diff for /np2/sound/rhythmc.c between versions 1.2 and 1.6

version 1.2, 2003/10/20 06:36:33 version 1.6, 2003/12/08 00:55:33
Line 2 Line 2
 #include        <math.h>  #include        <math.h>
 #include        "wavefile.h"  #include        "wavefile.h"
 #include        "dosio.h"  #include        "dosio.h"
   #include        "pccore.h"
 #include        "sound.h"  #include        "sound.h"
 #include        "rhythm.h"  #include        "rhythm.h"
   
Line 22  static const char *rhythmfile[RHYTHM_MAX Line 23  static const char *rhythmfile[RHYTHM_MAX
   
 static BOOL pcmload(RHYTHMPCM *pcm, const char *fname, UINT rate) {  static BOOL pcmload(RHYTHMPCM *pcm, const char *fname, UINT rate) {
   
           char            path[MAX_PATH];
         FILEH           fh;          FILEH           fh;
         RIFF_HEADER     riff;          RIFF_HEADER     riff;
         BOOL            head;          BOOL            head;
Line 35  static BOOL pcmload(RHYTHMPCM *pcm, cons Line 37  static BOOL pcmload(RHYTHMPCM *pcm, cons
         UINT            pos;          UINT            pos;
         BYTE            work[256];          BYTE            work[256];
   
         fh = file_open_c(fname);          getbiospath(path, fname, sizeof(path));
           fh = file_open_rb(path);
         if (fh == FILEH_INVALID) {          if (fh == FILEH_INVALID) {
                 goto pld_err1;                  goto pld_err1;
         }          }
Line 169  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) {

Removed from v.1.2  
changed lines
  Added in v.1.6


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