--- np2/win9x/soundmng.cpp 2007/01/08 01:16:59 1.13 +++ np2/win9x/soundmng.cpp 2007/10/28 16:01:35 1.15 @@ -14,10 +14,10 @@ #include "mt32snd.h" #endif -#if !defined(_WIN64) -#define SOUNDBUFFERALIGN (1 << 2) -#else +#if defined(_M_IA64) || defined(_M_AMD64) #define SOUNDBUFFERALIGN (1 << 3) +#else +#define SOUNDBUFFERALIGN (1 << 2) #endif #if !defined(_WIN64) @@ -92,6 +92,7 @@ UINT soundmng_create(UINT rate, UINT ms) (rate != 11025) && (rate != 22050) && (rate != 44100)) { goto stcre_err1; } + if (ms < 40) { ms = 40; } @@ -135,9 +136,11 @@ UINT soundmng_create(UINT rate, UINT ms) vermouth_module = midimod_create(rate); midimod_loadall(vermouth_module); #endif + #if defined(MT32SOUND_DLL) mt32sound_setrate(rate); #endif + dsstreamevent = (UINT8)-1; return(samples);