diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-08 15:34:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-08 15:39:04 +0200 |
commit | a223b96725c68a4e41c9f2f5675756c274730889 (patch) | |
tree | a4b65182c127c21bb4faa250a3101b00faecb6dd /libs/ardour/audio_track.cc | |
parent | fce6ac0ef6cbf410715a02b59d9d41d3290710a0 (diff) |
fix mute automation for busses & consolidate code.
Diffstat (limited to 'libs/ardour/audio_track.cc')
-rw-r--r-- | libs/ardour/audio_track.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index 1b544bfb57..742eb9c778 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -375,16 +375,6 @@ AudioTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram return dret; } - if (_mute_control->list() && _mute_control->automation_playback()) { - bool valid = false; - const float mute = _mute_control->list()->rt_safe_eval(transport_frame, valid); - if (mute >= 0.5 && !muted()) { - _mute_control->set_value_unchecked(1.0); // mute - } else if (mute < 0.5 && muted()) { - _mute_control->set_value_unchecked(0.0); // unmute - } - } - _silent = false; _amp->apply_gain_automation(false); |