13
0

faderport: fix odd interaction when selecting master-then-monitor or monitor-then-master and toggling back

This commit is contained in:
Paul Davis 2015-11-25 16:55:14 -05:00
parent 1450fc07c1
commit 9cbab4070f

View File

@ -18,6 +18,7 @@
*/
#include "ardour/async_midi_port.h"
#include "ardour/monitor_processor.h"
#include "ardour/rc_configuration.h"
#include "ardour/session.h"
#include "ardour/track.h"
@ -46,6 +47,12 @@ FaderPort::mute ()
return;
}
if (_current_route == session->monitor_out()) {
boost::shared_ptr<MonitorProcessor> mp = _current_route->monitor_control();
mp->set_cut_all (!mp->cut_all());
return;
}
boost::shared_ptr<RouteList> rl (new RouteList);
rl->push_back (_current_route);
session->set_mute (rl, !_current_route->muted());