|
|
| version 1.9, 2005/02/09 20:11:35 | version 1.10, 2005/02/16 09:31:55 |
|---|---|
| Line 50 static void (PARTSCALL *fnmix)(SINT16 | Line 50 static void (PARTSCALL *fnmix)(SINT16 |
| // ---- directsound | // ---- directsound |
| static BOOL dsoundcreate(void) { | static BRESULT dsoundcreate(void) { |
| // DirectSoundの初期化 | // DirectSoundの初期化 |
| if (FAILED(DirectSoundCreate(0, &pDSound, 0))) { | if (FAILED(DirectSoundCreate(0, &pDSound, 0))) { |
| Line 408 void soundmng_pcmvolume(UINT num, int vo | Line 408 void soundmng_pcmvolume(UINT num, int vo |
| } | } |
| } | } |
| BOOL soundmng_pcmplay(UINT num, BOOL loop) { | BRESULT soundmng_pcmplay(UINT num, BOOL loop) { |
| LPDIRECTSOUNDBUFFER dsbuf; | LPDIRECTSOUNDBUFFER dsbuf; |
| Line 438 void soundmng_pcmstop(UINT num) { | Line 438 void soundmng_pcmstop(UINT num) { |
| // ---- | // ---- |
| BOOL soundmng_initialize(void) { | BRESULT soundmng_initialize(void) { |
| if (dsoundcreate() != SUCCESS) { | if (dsoundcreate() != SUCCESS) { |
| goto smcre_err; | goto smcre_err; |