mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
(Some?) Win32/64 does not re-enable sound after app is minimized and restored, so (temporarily?) add a -bgsound switch to disable sound being muted
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@238 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e9192f232a
commit
70dc6cb641
1 changed files with 6 additions and 4 deletions
|
@ -100,10 +100,12 @@ int main(int argc, char *argv[])
|
|||
case SDL_ACTIVEEVENT:
|
||||
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
|
||||
{
|
||||
if (event.active.gain)
|
||||
S_UnblockSound();
|
||||
else
|
||||
S_BlockSound();
|
||||
if (!COM_CheckParm("-bgsound")) {
|
||||
if (event.active.gain)
|
||||
S_UnblockSound();
|
||||
else
|
||||
S_BlockSound();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
|
|
Loading…
Reference in a new issue