fix to viewshift (rid# 1089460)
snd_inactive with primarysound git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1106 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dc3a037985
commit
cb7bd8eba5
2 changed files with 8 additions and 1 deletions
|
@ -668,6 +668,12 @@ int DSOUND_InitCard (soundcardinfo_t *sc, int cardnum)
|
|||
dsbuf.dwBufferBytes = 0;
|
||||
dsbuf.lpwfxFormat = NULL;
|
||||
|
||||
if (snd_inactive.value)
|
||||
{
|
||||
dsbuf.dwFlags |= DSBCAPS_GLOBALFOCUS;
|
||||
sc->inactive_sound = true;
|
||||
}
|
||||
|
||||
memset(&dsbcaps, 0, sizeof(dsbcaps));
|
||||
dsbcaps.dwSize = sizeof(dsbcaps);
|
||||
primary_format_set = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue