Saw in the limitations/issues that it didn't mute the plugins audio when you alt tabbed [aka lost window focus] so I made this to fix that issue
How it works:
Checks the current window title
if is_focused is true it then checks if the window title doesn't equal one of the allowed_windows if it doesn't then it will set the master volume to 0 and set is_focused to false if the window title does equal one of the allowed_windows then it does nothing
if is_focused is false it then checks if the window title does equal one of the allows_windows if it does then it will set the master volume to the value in sound_levels.txt and set is_focused to true if the window title doesn't equal one of the allowed_windows then it does nothing
Description:
Saw in the
limitations/issues
that it didn't mute the plugins audio when you alt tabbed [aka lost window focus] so I made this to fix that issueHow it works:
is_focused
istrue
it then checks if the window title doesn't equal one of theallowed_windows
if it doesn't then it will set the master volume to0
and setis_focused
tofalse
if the window title does equal one of theallowed_windows
then it does nothingis_focused
isfalse
it then checks if the window title does equal one of theallows_windows
if it does then it will set the master volume to the value insound_levels.txt
and setis_focused
totrue
if the window title doesn't equal one of theallowed_windows
then it does nothingExample Video:
Example Video