Diff for /np2/win9xc/soundmng.cpp between versions 1.1 and 1.2

version 1.1, 2003/10/16 17:59:22 version 1.2, 2003/11/21 06:51:15
Line 6 Line 6
 #include        "soundmng.h"  #include        "soundmng.h"
 #include        "sound.h"  #include        "sound.h"
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
 #include        "vermouth.h"  #include        "commng.h"
   #include        "cmver.h"
 #endif  #endif
   
   
Line 30  static UINT    dsstreambytes; Line 31  static UINT    dsstreambytes;
 static  BYTE                            dsstreamevent;  static  BYTE                            dsstreamevent;
 static  BYTE                            mute;  static  BYTE                            mute;
   
 #if defined(VERMOUTH_LIB)  
                 MIDIMOD         vermouth_module = NULL;  
 #endif  
   
   
 // ---- directsound  // ---- directsound
   
Line 62  UINT soundmng_create(UINT rate, UINT ms) Line 59  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 104  UINT soundmng_create(UINT rate, UINT ms) Line 98  UINT soundmng_create(UINT rate, UINT ms)
         }          }
   
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
         vermouth_module = midimod_create(rate);          cmvermouth_load(rate);
         for (num=0; num<128; num++) {  
                 midimod_loadprogram(vermouth_module, num);  
                 midimod_loadrhythm(vermouth_module, num);  
         }  
 #endif  #endif
         dsstreamevent = (BYTE)-1;          dsstreamevent = (BYTE)-1;
         soundmng_reset();          soundmng_reset();
Line 146  void soundmng_destroy(void) { Line 136  void soundmng_destroy(void) {
   
         if (pDSData3) {          if (pDSData3) {
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
                 midimod_destroy(vermouth_module);                  cmvermouth_unload();
                 vermouth_module = NULL;  
 #endif  #endif
                 pDSData3->Stop();                  pDSData3->Stop();
                 pDSData3->Release();                  pDSData3->Release();

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


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