diff options
author | Tim Angus <tim@ngus.net> | 2007-09-05 22:05:32 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-09-05 22:05:32 +0000 |
commit | c99975c73ae2941751d86d3b8466454c5ad122c0 (patch) | |
tree | b5bb65655fbdbc22201426046092939bcf696abe /src/client/snd_main.c | |
parent | 27ad2c0e19891f7f2454c9eedf76878dc1942ba6 (diff) |
* Merge of ioq3-r1163
+ SDL everywhere
+ New R_LoadImage
+ net_ip.c
+ Window icon
+ GUI based dedicated server support
+ Compile time linked OpenGL
* Remove ui_menuFiles cvar
Diffstat (limited to 'src/client/snd_main.c')
-rw-r--r-- | src/client/snd_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/snd_main.c b/src/client/snd_main.c index eb31f2d7..ebb0e9da 100644 --- a/src/client/snd_main.c +++ b/src/client/snd_main.c @@ -31,6 +31,7 @@ cvar_t *s_volume; cvar_t *s_musicVolume; cvar_t *s_doppler; cvar_t *s_backend; +cvar_t *s_muteWhenMinimized; static soundInterface_t si; @@ -220,6 +221,11 @@ S_Update */ void S_Update( void ) { + if( s_muteWhenMinimized->integer && com_minimized->integer ) { + S_StopAllSounds( ); + return; + } + if( si.Update ) { si.Update( ); } @@ -373,6 +379,7 @@ void S_Init( void ) s_musicVolume = Cvar_Get( "s_musicvolume", "0.25", CVAR_ARCHIVE ); s_doppler = Cvar_Get( "s_doppler", "1", CVAR_ARCHIVE ); s_backend = Cvar_Get( "s_backend", "", CVAR_ROM ); + s_muteWhenMinimized = Cvar_Get( "s_muteWhenMinimized", "0", CVAR_ARCHIVE ); cv = Cvar_Get( "s_initsound", "1", 0 ); if( !cv->integer ) { |