Fix mute toggle actions when mute is automated
authorRobin Gareus <robin@gareus.org>
Tue, 3 Sep 2019 20:01:35 +0000 (22:01 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 3 Sep 2019 20:01:35 +0000 (22:01 +0200)
Track menu, as well as mixer-shortcut to set/unset mute
of selected tracks needs to send a start_touch() event, otherwise
the change is not effective.

gtk2_ardour/editor_ops.cc
gtk2_ardour/mixer_ui.cc

index 99e7d1133ab3a2b45ba68feddf70fdc8f3033abf..c4c6f18ac84ed0a2a609c32075a60349eec852b0 100644 (file)
@@ -6162,7 +6162,9 @@ Editor::toggle_mute ()
                        first = false;
                }
 
-               cl->push_back (stav->stripable()->mute_control());
+               boost::shared_ptr<MuteControl> mc = stav->stripable()->mute_control();
+               cl->push_back (mc);
+               mc->start_touch (_session->audible_sample ());
        }
 
        _session->set_controls (cl, new_state, Controllable::UseGroup);
index de59ef2a6806d4f79538efd7d302565b4801008e..25effbd0e861cc2ecea1fe10bda580d5da2fbfb3 100644 (file)
@@ -3383,6 +3383,7 @@ Mixer_UI::control_action (boost::shared_ptr<T> (Stripable::*get_control)() const
                if (s) {
                        ac = (s.get()->*get_control)();
                        if (ac) {
+                               ac->start_touch (_session->audible_sample ());
                                cl->push_back (ac);
                                if (!have_val) {
                                        val = !ac->get_value();