Fix mute toggle actions when mute is automated

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.
This commit is contained in:
Robin Gareus 2019-09-03 22:01:35 +02:00
parent e30a1032d0
commit e7637d7786
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 1 deletions

View 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);

View 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();