diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-06-10 13:59:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-06-10 13:59:06 +0000 |
commit | ff26317d4f7904c071d7ecfb96fd84e71728f6d0 (patch) | |
tree | 245b8f3ad569b09de84110eae6dce6297ac5d4b8 /libs/ardour/mute_master.cc | |
parent | cc8598b0712dfc756fd62f002b1fa1ea0e3cda25 (diff) |
fix mute & solo behaviour mostly ; remove some verbose debugging output
git-svn-id: svn://localhost/ardour2/branches/3.0@5153 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mute_master.cc')
-rw-r--r-- | libs/ardour/mute_master.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/mute_master.cc b/libs/ardour/mute_master.cc index ca64fb01a5..bbf1036dd4 100644 --- a/libs/ardour/mute_master.cc +++ b/libs/ardour/mute_master.cc @@ -17,6 +17,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <iostream> #include "ardour/mute_master.h" #include "ardour/rc_configuration.h" @@ -68,7 +69,7 @@ MuteMaster::mute (bool yn) /* convenience wrapper around AutomationControl method */ if (yn) { - set_value (1.0f); + set_value ((float) 0xffff); } else { set_value (0.0f); } @@ -87,7 +88,11 @@ MuteMaster::mute_gain_at (MutePoint mp) const void MuteMaster::set_value (float f) { - mute_at ((MutePoint) ((int) rint (f))); + MutePoint old = _mute_point; + _mute_point = (MutePoint) (rint (f)); + if (old != _mute_point) { + MutePointChanged (); // EMIT SIGNAL + } } float |