Using secondary buffer again - StatMat: please make a toggle.

This commit is contained in:
n-a-c-h
2004-05-06 19:31:34 +00:00
parent 2ca8abc887
commit 266322003a

View File

@@ -680,12 +680,12 @@ InitSound()
{ {
lpDirectSound->Initialize(NULL); lpDirectSound->Initialize(NULL);
if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_WRITEPRIMARY)) if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_NORMAL)) //DSSCL_WRITEPRIMARY, fix this StatMat - make a toggle
{ {
if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_EXCLUSIVE)) if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_EXCLUSIVE))
return FALSE; return FALSE;
} }
else UsePrimaryBuffer=1; else UsePrimaryBuffer=0; //1, fix this StatMat - make a toggle
} }
else else
{ {