[SoundSystem] Don't play any sound if while application is unfocused

[SoundSystem] Don’t play any sound if while application is unfocused

diff --git a/src/docs/Changelog b/src/docs/Changelog
index bf2b277..f789cdf 100644
--- a/src/docs/Changelog
+++ b/src/docs/Changelog
@@ -3,6 +3,7 @@
 	* [Engine] Fix mouse locking issues when the mouse would lock at the center of your screen
 	* [Engine] Implemented Com_Clampi and simplified timeNudge
 	* [SoundSystem] Don't play any sound if while application is minimized
+	* [SoundSystem] Don't play any sound if while application is unfocused
 	
 2021-04-03 Dusan Jocic <dusanjocic@msn>
 	* [RendererSystem} Addressed the problem with DPI inside the engine
diff --git a/src/engine/soundSystem/sndSystem_load.cpp b/src/engine/soundSystem/sndSystem_load.cpp
index ce1a049..555549b 100644
--- a/src/engine/soundSystem/sndSystem_load.cpp
+++ b/src/engine/soundSystem/sndSystem_load.cpp
@@ -257,7 +257,7 @@ idSoundSystemLocal::StartSound
 */
 void idSoundSystemLocal::StartSound( vec3_t origin, sint entnum, sint entchannel, sfxHandle_t sfx )
 {
-    if( com_minimized->integer )
+    if( com_minimized->integer || com_unfocused->integer )
     {
         return;
     }

GitHub
sha: a325cc21