summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2020-04-14 13:34:49 -0500
committerNikolaus Gullotta <nik@harrisonconsoles.com>2020-04-14 13:34:49 -0500
commit07709b39c118381b5495dc2550af2103002fe3bf (patch)
treecdd669e8c524da0d72ec73c3390a399f3c6be3af
parentc34abd094e79b00b4103adc06e2075fbcaec4c6e (diff)
Reset master send control along with sends
-rw-r--r--share/scripts/reset_mixer.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/share/scripts/reset_mixer.lua b/share/scripts/reset_mixer.lua
index 00ac7cb294..6feabdf268 100644
--- a/share/scripts/reset_mixer.lua
+++ b/share/scripts/reset_mixer.lua
@@ -193,7 +193,21 @@ function factory() return function()
if pref["eq"] then reset_eq_controls(route, disp, auto) end
if pref["comp"] then reset_comp_controls(route, disp, auto) end
- if pref["sends"] then reset_send_controls(route, disp, auto) end
+ if pref["sends"] then
+ reset_send_controls(route, disp, auto)
+
+ -- Can't use reset() on this becuase ctrl:desc().normal
+ -- for master_send_enable_controllable is 0, and we really
+ -- want 1.
+ local msec = route:master_send_enable_controllable()
+ if not(msec:isnil()) then
+ msec:set_value(1, disp)
+ if auto then
+ ctrl:set_automation_state(auto)
+ end
+ end
+ end
+
reset_plugins(route, pref, auto)
if pref["rec"] then