Diff for /np2/win9x/soundmng.cpp between versions 1.5 and 1.7

version 1.5, 2003/11/24 07:40:02 version 1.7, 2004/02/03 08:24:40
Line 6 Line 6
 #include        "soundmng.h"  #include        "soundmng.h"
 #include        "extromio.h"  #include        "extromio.h"
 #include        "sound.h"  #include        "sound.h"
   #include        "juliet.h"
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
 #include        "vermouth.h"  #include        "vermouth.h"
 #endif  #endif
Line 74  UINT soundmng_create(UINT rate, UINT ms) Line 75  UINT soundmng_create(UINT rate, UINT ms)
         UINT                    samples;          UINT                    samples;
         DSBUFFERDESC    dsbdesc;          DSBUFFERDESC    dsbdesc;
         PCMWAVEFORMAT   pcmwf;          PCMWAVEFORMAT   pcmwf;
 #if defined(VERMOUTH_LIB)  
         UINT                    num;  
 #endif  
   
         if ((pDSound == NULL) ||          if ((pDSound == NULL) ||
                 (rate != 11025) && (rate != 22050) && (rate != 44100)) {                  (rate != 11025) && (rate != 22050) && (rate != 44100)) {
Line 118  UINT soundmng_create(UINT rate, UINT ms) Line 116  UINT soundmng_create(UINT rate, UINT ms)
   
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
         vermouth_module = midimod_create(rate);          vermouth_module = midimod_create(rate);
         for (num=0; num<128; num++) {          midimod_loadall(vermouth_module);
                 midimod_loadprogram(vermouth_module, num);  
                 midimod_loadrhythm(vermouth_module, num);  
         }  
 #endif  #endif
         dsstreamevent = (BYTE)-1;          dsstreamevent = (BYTE)-1;
         soundmng_reset();          soundmng_reset();
Line 178  static void streamenable(BOOL play) { Line 173  static void streamenable(BOOL play) {
                         pDSData3->Stop();                          pDSData3->Stop();
                 }                  }
         }          }
           juliet_YMF288Enable(play);
 }  }
   
 void soundmng_play(void) {  void soundmng_play(void) {

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


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