diff --git a/engine/client/s_stream.c b/engine/client/s_stream.c index 907b2288..7f3e2973 100644 --- a/engine/client/s_stream.c +++ b/engine/client/s_stream.c @@ -57,6 +57,12 @@ float S_GetMusicVolume( void ) { float scale = 1.0f; + if( host.status == HOST_NOFOCUS && snd_mute_losefocus.value != 0.0f ) + { + // we return zero volume to keep sounds running + return 0.0f; + } + if( !s_listener.inmenu && musicfade.percent != 0 ) { scale = bound( 0.0f, musicfade.percent / 100.0f, 1.0f );