From 8ee660356181f4eb66e4abcb30d52f55ae267b80 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 19 Apr 2016 13:02:40 -0400 Subject: design changes to various SlavableAutomationControls to make it possible to get the logic right for boolean controls --- libs/ardour/mute_master.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/mute_master.cc') diff --git a/libs/ardour/mute_master.cc b/libs/ardour/mute_master.cc index c13131c11b..89691fc058 100644 --- a/libs/ardour/mute_master.cc +++ b/libs/ardour/mute_master.cc @@ -170,8 +170,8 @@ MuteMaster::muted_by_others_at (MutePoint mp) const } void -MuteMaster::mod_muted_by_others (int32_t delta) +MuteMaster::set_muted_by_others (bool yn) { - _muted_by_others = max (0, _muted_by_others + delta); - std::cerr << this << " mod others by " << delta << " to get " << _muted_by_others << endl; + _muted_by_others = yn; + std::cerr << this << " set muted by others to " << yn << std::endl; } -- cgit v1.2.3