Diff for /np2/win9x/soundmng.cpp between versions 1.12 and 1.15

version 1.12, 2006/12/24 00:52:29 version 1.15, 2007/10/28 16:01:35
Line 14 Line 14
 #include        "mt32snd.h"  #include        "mt32snd.h"
 #endif  #endif
   
   #if defined(_M_IA64) || defined(_M_AMD64)
   #define SOUNDBUFFERALIGN        (1 << 3)
   #else
   #define SOUNDBUFFERALIGN        (1 << 2)
   #endif
   
 #if !defined(_WIN64)  #if !defined(_WIN64)
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
Line 86  UINT soundmng_create(UINT rate, UINT ms) Line 92  UINT soundmng_create(UINT rate, UINT ms)
                 (rate != 11025) && (rate != 22050) && (rate != 44100)) {                  (rate != 11025) && (rate != 22050) && (rate != 44100)) {
                 goto stcre_err1;                  goto stcre_err1;
         }          }
   
         if (ms < 40) {          if (ms < 40) {
                 ms = 40;                  ms = 40;
         }          }
Line 97  UINT soundmng_create(UINT rate, UINT ms) Line 104  UINT soundmng_create(UINT rate, UINT ms)
 //      keydispr_delayinit((UINT8)((ms * 10 + 563) / 564));  //      keydispr_delayinit((UINT8)((ms * 10 + 563) / 564));
   
         samples = (rate * ms) / 2000;          samples = (rate * ms) / 2000;
         samples = (samples + 3) & (~3);          samples = (samples + SOUNDBUFFERALIGN - 1) & (~(SOUNDBUFFERALIGN - 1));
         dsstreambytes = samples * 2 * sizeof(SINT16);          dsstreambytes = samples * 2 * sizeof(SINT16);
         soundmng_setreverse(FALSE);          soundmng_setreverse(FALSE);
   
Line 129  UINT soundmng_create(UINT rate, UINT ms) Line 136  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)  #if defined(MT32SOUND_DLL)
         mt32sound_setrate(rate);          mt32sound_setrate(rate);
 #endif  #endif
   
         dsstreamevent = (UINT8)-1;          dsstreamevent = (UINT8)-1;
         return(samples);          return(samples);
   

Removed from v.1.12  
changed lines
  Added in v.1.15


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