|
|
| version 1.3, 2004/02/13 20:31:55 | version 1.4, 2005/02/07 14:46:15 |
|---|---|
| Line 28 | Line 28 |
| static LPDIRECTSOUND pDSound; | static LPDIRECTSOUND pDSound; |
| static LPDIRECTSOUNDBUFFER pDSData3; | static LPDIRECTSOUNDBUFFER pDSData3; |
| static UINT dsstreambytes; | static UINT dsstreambytes; |
| static BYTE dsstreamevent; | static UINT8 dsstreamevent; |
| static UINT mute; | static UINT mute; |
| static void (PARTSCALL *fnmix)(SINT16 *dst, | static void (PARTSCALL *fnmix)(SINT16 *dst, |
| const SINT32 *src, UINT size); | const SINT32 *src, UINT size); |
| Line 74 UINT soundmng_create(UINT rate, UINT ms) | Line 74 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 = (rate * ms) / 2000; |
| samples = (samples + 3) & (~3); | samples = (samples + 3) & (~3); |
| Line 103 UINT soundmng_create(UINT rate, UINT ms) | Line 103 UINT soundmng_create(UINT rate, UINT ms) |
| #if defined(VERMOUTH_LIB) | #if defined(VERMOUTH_LIB) |
| cmvermouth_load(rate); | cmvermouth_load(rate); |
| #endif | #endif |
| dsstreamevent = (BYTE)-1; | dsstreamevent = (UINT8)-1; |
| soundmng_reset(); | soundmng_reset(); |
| return(samples); | return(samples); |
| Line 131 void soundmng_reset(void) { | Line 131 void soundmng_reset(void) { |
| } | } |
| pDSData3->Unlock(blockptr1, blocksize1, blockptr2, blocksize2); | pDSData3->Unlock(blockptr1, blocksize1, blockptr2, blocksize2); |
| pDSData3->SetCurrentPosition(0); | pDSData3->SetCurrentPosition(0); |
| dsstreamevent = (BYTE)-1; | dsstreamevent = (UINT8)-1; |
| } | } |
| } | } |