snd_mute_losefocus
Mutes the game when you alt-tab out.
snd_mute_losefocus 0
Values
| Value | Effect | |
|---|---|---|
| snd_mute_losefocus 0 | Keep sound | |
| snd_mute_losefocus 1 | Mute | Default |
Examples
snd_mute_losefocus 0
How to use it
- Turn on the console under Settings, Game, Enable Developer Console.
- Press the key under Esc to open it.
- Type snd_mute_losefocus followed by a value and press Enter.
- To keep the setting, add the same line to your autoexec.cfg.
FAQ
Does snd_mute_losefocus need sv_cheats?
No. snd_mute_losefocus is not cheat-protected in CS2's command list, so you can use it in any game.
What is the default value of snd_mute_losefocus?
The default is 1 (true). To reset it, type snd_mute_losefocus 1 in the console.
More audio commands
Revision history
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).