mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
Some recommended changes for win32 sound
This commit is contained in:
parent
233d0af85f
commit
946bc3c79d
1 changed files with 8 additions and 2 deletions
|
@ -259,8 +259,10 @@ sndinitstat SNDDMA_InitDirect (void)
|
|||
FreeSound ();
|
||||
return SIS_FAILURE;
|
||||
}
|
||||
|
||||
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_EXCLUSIVE))
|
||||
// Changed DSSCL_EXCLUSIVE to DSSCL_NORMAL
|
||||
// -- Robert S. Elsner <sockman@ngfc.com>
|
||||
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_NORMAL))
|
||||
// if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_EXCLUSIVE))
|
||||
{
|
||||
Con_SafePrintf ("Set coop level failed\n");
|
||||
FreeSound ();
|
||||
|
@ -335,6 +337,9 @@ sndinitstat SNDDMA_InitDirect (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
// Removed the option for -primarysound
|
||||
// -- Robert S. Elsner <sockman@ngfc.com>
|
||||
#if 0
|
||||
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_WRITEPRIMARY))
|
||||
{
|
||||
Con_SafePrintf ("Set coop level failed\n");
|
||||
|
@ -350,6 +355,7 @@ sndinitstat SNDDMA_InitDirect (void)
|
|||
|
||||
pDSBuf = pDSPBuf;
|
||||
// Con_SafePrintf ("Using primary sound buffer\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
// Make sure mixer is active
|
||||
|
|
Loading…
Reference in a new issue