Diff for /np2/win9x/soundmng.cpp between versions 1.10 and 1.11

version 1.10, 2005/02/16 09:31:55 version 1.11, 2005/03/02 04:28:08
Line 10 Line 10
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
 #include        "vermouth.h"  #include        "vermouth.h"
 #endif  #endif
   #if defined(MT32SOUND_DLL)
   #include        "mt32snd.h"
   #endif
   
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
Line 118  UINT soundmng_create(UINT rate, UINT ms) Line 122  UINT soundmng_create(UINT rate, UINT ms)
         vermouth_module = midimod_create(rate);          vermouth_module = midimod_create(rate);
         midimod_loadall(vermouth_module);          midimod_loadall(vermouth_module);
 #endif  #endif
   #if defined(MT32SOUND_DLL)
           mt32sound_setrate(rate);
   #endif
         dsstreamevent = (UINT8)-1;          dsstreamevent = (UINT8)-1;
         soundmng_reset();          soundmng_reset();
         return(samples);          return(samples);
Line 157  void soundmng_destroy(void) { Line 164  void soundmng_destroy(void) {
                 midimod_destroy(vermouth_module);                  midimod_destroy(vermouth_module);
                 vermouth_module = NULL;                  vermouth_module = NULL;
 #endif  #endif
   #if defined(MT32SOUND_DLL)
                   mt32sound_setrate(0);
   #endif
                 pDSData3->Stop();                  pDSData3->Stop();
                 pDSData3->Release();                  pDSData3->Release();
                 pDSData3 = NULL;                  pDSData3 = NULL;
Line 444  BRESULT soundmng_initialize(void) { Line 454  BRESULT soundmng_initialize(void) {
                 goto smcre_err;                  goto smcre_err;
         }          }
         pcmcreate();          pcmcreate();
   #if defined(MT32SOUND_DLL)
           mt32sound_initialize();
   #endif
         return(SUCCESS);          return(SUCCESS);
   
 smcre_err:  smcre_err:
Line 453  smcre_err: Line 466  smcre_err:
   
 void soundmng_deinitialize(void) {  void soundmng_deinitialize(void) {
   
   #if defined(MT32SOUND_DLL)
           mt32sound_deinitialize();
   #endif
         pcmdestroy();          pcmdestroy();
         soundmng_destroy();          soundmng_destroy();
         RELEASE(pDSound);          RELEASE(pDSound);

Removed from v.1.10  
changed lines
  Added in v.1.11


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