13
0

fix mute automation in Play automation state

This commit is contained in:
Paul Davis 2015-10-21 23:06:05 -04:00
parent 8d3a8ca913
commit d4227faaee

View File

@ -374,9 +374,9 @@ AudioTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram
bool valid = false;
const float mute = _mute_control->list()->rt_safe_eval(transport_frame, valid);
if (mute >= 0.5 && !muted()) {
_mute_control->set_value(1.0); // mute
_mute_control->set_value_unchecked(1.0); // mute
} else if (mute < 0.5 && muted()) {
_mute_control->set_value(0.0); // unmute
_mute_control->set_value_unchecked(0.0); // unmute
}
}