mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-16 16:51:16 +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 ();
|
FreeSound ();
|
||||||
return SIS_FAILURE;
|
return SIS_FAILURE;
|
||||||
}
|
}
|
||||||
|
// Changed DSSCL_EXCLUSIVE to DSSCL_NORMAL
|
||||||
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_EXCLUSIVE))
|
// -- 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");
|
Con_SafePrintf ("Set coop level failed\n");
|
||||||
FreeSound ();
|
FreeSound ();
|
||||||
|
@ -335,6 +337,9 @@ sndinitstat SNDDMA_InitDirect (void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Removed the option for -primarysound
|
||||||
|
// -- Robert S. Elsner <sockman@ngfc.com>
|
||||||
|
#if 0
|
||||||
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_WRITEPRIMARY))
|
if (DS_OK != pDS->lpVtbl->SetCooperativeLevel (pDS, mainwindow, DSSCL_WRITEPRIMARY))
|
||||||
{
|
{
|
||||||
Con_SafePrintf ("Set coop level failed\n");
|
Con_SafePrintf ("Set coop level failed\n");
|
||||||
|
@ -350,6 +355,7 @@ sndinitstat SNDDMA_InitDirect (void)
|
||||||
|
|
||||||
pDSBuf = pDSPBuf;
|
pDSBuf = pDSPBuf;
|
||||||
// Con_SafePrintf ("Using primary sound buffer\n");
|
// Con_SafePrintf ("Using primary sound buffer\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure mixer is active
|
// Make sure mixer is active
|
||||||
|
|
Loading…
Reference in a new issue