Mute sounds with 0 volume when game is minimized/unfocused instead of Stopping all sounds. Fixes (#4336)
This commit is contained in:
1 parent
e8ae8f5d3a
commit
2a0812bc06
5 files changed
+70
-13
No files matched your search
@@ -637,7 +637,10 @@ void S_PaintChannels( int endtime ) {
|
||||
int ltime, count;
|
||||
int sampleOffset;
|
||||
|
||||
snd_vol = s_volume->value*255;
|
||||
if(s_muted->integer)
|
||||
snd_vol = 0;
|
||||
else
|
||||
snd_vol = s_volume->value*255;
|
||||
|
||||
//Com_Printf ("%i to %i\n", s_paintedtime, endtime);
|
||||
while ( s_paintedtime < endtime ) {
|
||||
|
||||
Reference in new issue
Block a user