Choose what happens when focus changes
snd_mute_losefocus controls muting when the game loses focus. Use 1 to mute it after switching away, or 0 to allow background audio. Read and record the current setting by entering the variable name without a number first.
Compare on a local map
Start a local session with audible sound and switch to another window using Alt+Tab. Compare 0 and 1 while keeping the output device and volume unchanged. A silent menu is not a reliable test: if menu music is disabled, hearing nothing does not establish whether background audio works.
If it stays silent in the background
Check whether sound works while CS2 is the active window. If it does not, first check the output device, the application level in Windows volume mixer and the game’s master volume. If sound disappears only after switching away, check whether your output device or audio-software profile changes at that moment.
It does not configure microphone recording
Hearing background audio does not establish that Steam or capture software records your microphone. Check recording inputs separately. Likewise, hearing CS2 in the background and transmitting your voice to teammates are different tasks.
Restore muting when switching away
Enter snd_mute_losefocus 1 or restore your original value. Check again after restarting. If it resets, search executed cfg files for the variable. You do not need to replace the entire audio configuration to change one Alt+Tab behaviour.