|
|
| version 1.8, 2005/02/07 14:46:14 | 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 297 static void pcmstop(void) { | Line 297 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; | EXTROMH erh; |
| RIFF_HEADER riff; | RIFF_HEADER riff; |
| 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; |