How to Mute OBS Desktop Audio When Game Closes
This article explains how to automatically mute or silence audio in OBS Studio when a specific game application closes. You will learn the two most effective methods to achieve this: using OBS Studio’s built-in Application Audio Capture to isolate game sound, and using the Advanced Scene Switcher plugin to automate mute toggles based on active system processes.
Method 1: Use Application Audio Capture (Recommended)
Instead of capturing your entire desktop audio and trying to mute it, the most efficient method is to capture only the specific game’s audio. When the game closes, the audio source naturally ceases, achieving the same result without affecting your other desktop sounds (like Discord or music).
- Open OBS Studio.
- Go to the Sources dock at the bottom of the screen.
- Click the + (Add) icon and select Application Audio Capture (BETA).
- Name the source (e.g., “Game Audio”) and click OK.
- In the properties window, change the Mode to Capture specific window.
- Under the Window dropdown, select your active game application.
- Click OK.
- Go to Settings > Audio in OBS, and set Desktop Audio to Disabled to prevent duplicate audio capture.
Now, OBS will only capture audio from that specific game. Once the game application closes, the audio stream stops immediately.
Method 2: Automate Muting with the Advanced Scene Switcher Plugin
If you must capture global desktop audio but want OBS to automatically mute the source when a game closes, you can use the free, widely-used Advanced Scene Switcher plugin for OBS.
Step 1: Install the Plugin
- Download and install the Advanced Scene Switcher plugin from the official OBS Studio resources forum.
- Restart OBS Studio.
Step 2: Create the Mute Macro
- In OBS, go to the top menu and select Tools > Advanced Scene Switcher.
- Navigate to the Macro tab.
- Click the + button at the bottom left to create a new macro and name it “Mute Desktop Audio”.
- Set up the condition (the “If” statement):
- Select Process from the first dropdown.
- Choose your game executable (e.g.,
game.exe) from the list. - Set the state to is not running.
- Set up the action (the “Then” statement):
- Select Source from the action dropdown.
- Choose your Desktop Audio source.
- Set the action to Mute.
Step 3: Create the Unmute Macro (Optional)
To ensure your desktop audio automatically unmutes when you launch the game again, create a second macro.
- Click the + button to create another macro and name it “Unmute Desktop Audio”.
- Set the condition: If Process [your_game.exe] is running.
- Set the action: Then Source [Desktop Audio] -> Unmute.
- Go to the General tab of the plugin and click Start to enable the automation.