--- np2/win9x/soundmng.cpp 2003/11/28 08:01:33 1.6 +++ np2/win9x/soundmng.cpp 2005/02/09 20:11:35 1.9 @@ -6,6 +6,7 @@ #include "soundmng.h" #include "extromio.h" #include "sound.h" +#include "juliet.h" #if defined(VERMOUTH_LIB) #include "vermouth.h" #endif @@ -36,7 +37,7 @@ void __fastcall satuation_s16mmx(SINT16 static LPDIRECTSOUND pDSound; static LPDIRECTSOUNDBUFFER pDSData3; static UINT dsstreambytes; -static BYTE dsstreamevent; +static UINT8 dsstreamevent; static LPDIRECTSOUNDBUFFER pDSwave3[SOUND_MAXPCM]; static UINT mute; static void (PARTSCALL *fnmix)(SINT16 *dst, @@ -87,7 +88,7 @@ UINT soundmng_create(UINT rate, UINT ms) } // キーボード表示のディレイ設定 -// keydispr_delayinit((BYTE)((ms * 10 + 563) / 564)); +// keydispr_delayinit((UINT8)((ms * 10 + 563) / 564)); samples = (rate * ms) / 2000; samples = (samples + 3) & (~3); @@ -117,7 +118,7 @@ UINT soundmng_create(UINT rate, UINT ms) vermouth_module = midimod_create(rate); midimod_loadall(vermouth_module); #endif - dsstreamevent = (BYTE)-1; + dsstreamevent = (UINT8)-1; soundmng_reset(); return(samples); @@ -145,7 +146,7 @@ void soundmng_reset(void) { } pDSData3->Unlock(blockptr1, blocksize1, blockptr2, blocksize2); pDSData3->SetCurrentPosition(0); - dsstreamevent = (BYTE)-1; + dsstreamevent = (UINT8)-1; } } @@ -172,6 +173,7 @@ static void streamenable(BOOL play) { pDSData3->Stop(); } } + juliet_YMF288Enable(play); } void soundmng_play(void) { @@ -295,7 +297,7 @@ static void pcmstop(void) { } } -void soundmng_pcmload(UINT num, const char *filename, UINT type) { +void soundmng_pcmload(UINT num, const OEMCHAR *filename, UINT type) { EXTROMH erh; RIFF_HEADER riff;