|
|
| version 1.15, 2007/10/28 16:01:35 | version 1.16, 2007/11/11 07:11:27 |
|---|---|
| Line 61 static void (PARTSCALL *fnmix)(SINT16 | Line 61 static void (PARTSCALL *fnmix)(SINT16 |
| // ---- directsound | // ---- directsound |
| static BRESULT dsoundcreate(void) { | static BRESULT dsoundcreate(HWND hWnd) |
| { | |
| // DirectSoundの初期化 | // DirectSoundの初期化 |
| if (FAILED(DirectSoundCreate(0, &pDSound, 0))) { | if (FAILED(DirectSoundCreate(0, &pDSound, 0))) { |
| goto dscre_err; | goto dscre_err; |
| } | } |
| if (FAILED(pDSound->SetCooperativeLevel(hWndMain, DSSCL_PRIORITY))) { | if (FAILED(pDSound->SetCooperativeLevel(hWnd, DSSCL_PRIORITY))) |
| if (FAILED(pDSound->SetCooperativeLevel(hWndMain, DSSCL_NORMAL))) { | { |
| if (FAILED(pDSound->SetCooperativeLevel(hWnd, DSSCL_NORMAL))) | |
| { | |
| goto dscre_err; | goto dscre_err; |
| } | } |
| } | } |
| Line 469 void soundmng_pcmstop(UINT num) { | Line 471 void soundmng_pcmstop(UINT num) { |
| BRESULT soundmng_initialize(void) { | BRESULT soundmng_initialize(void) { |
| if (dsoundcreate() != SUCCESS) { | if (dsoundcreate(g_hWndMain) != SUCCESS) { |
| goto smcre_err; | goto smcre_err; |
| } | } |
| pcmcreate(); | pcmcreate(); |