Diff for /np2/sound/sound.c between versions 1.1 and 1.2

version 1.1, 2003/10/16 17:58:02 version 1.2, 2003/10/19 14:56:15
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "soundmng.h"  #include        "soundmng.h"
   #include        "i286.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "sound.h"  #include        "sound.h"
Line 129  void sound_reset(void) { Line 130  void sound_reset(void) {
         if (sndstream.buffer) {          if (sndstream.buffer) {
                 soundmng_reset();                  soundmng_reset();
                 streamreset();                  streamreset();
                 dsound_lastclock = nevent.clock;                  dsound_lastclock = I286_CLOCK;
                 beep_eventreset();                  beep_eventreset();
         }          }
 }  }
Line 157  void sound_sync(void) { Line 158  void sound_sync(void) {
                 return;                  return;
         }          }
   
         length = (nevent.clock + nevent.baseclock - nevent.remainclock          length = (I286_CLOCK + I286_BASECLOCK - I286_REMCLOCK
                                                                                 - dsound_lastclock) * ratebase200;                                                                                          - dsound_lastclock) * ratebase200;
         if (length < pc.dsoundclock2) {          if (length < pc.dsoundclock2) {
                 return;                  return;
         }          }
Line 187  const SINT32 *ret; Line 188  const SINT32 *ret;
                 SNDCSEC_ENTER;                  SNDCSEC_ENTER;
                 if (sndstream.remain) {                  if (sndstream.remain) {
                         streamprepare(sndstream.remain);                          streamprepare(sndstream.remain);
                         dsound_lastclock = nevent.clock;                          dsound_lastclock = I286_CLOCK;
                         beep_eventreset();                          beep_eventreset();
                 }                  }
         }          }

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


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