Mute sounds with 0 volume when game is minimized/unfocused instead of Stopping all sounds. Fixes (#4336)
This commit is contained in:
parent
e8ae8f5d3a
commit
2a0812bc06
5 changed files with 70 additions and 13 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue