Jan 7, 2023
This LUA Source script will mute/unmute or set volume of a source (duck) to a specified level when entering a scene. Option to restore previous level on exit. Manages OBS loading new scene before exiting existing scene by ignoring restore if the new scene is also modifying volume for the same source.
Newest version adds volume level fade in/out and a few more bug fixes.
1. Add source to scene
2. In source properties select Audio source to modify, Unmute if muted, mute if unmuted, or ducking. 3. if ducking then select volume level for the audio source for this scene with desired fade in/fade out speed 1-slow to 10-fast.
4. Check Restore on Exit to put the prior level/state back when exiting the scene (if next scene does not modify the same audio source)
The source within the scene will be renamed to something that describes the selected function:
Mute: Desktop Audio or (1) Desktop Audio Vol set to 35 (-25.3 db)