summaryrefslogtreecommitdiff
path: root/libs/ardour/mute_master.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-01-04 18:15:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-01-04 18:15:29 +0000
commit11792ed95dc9b9435045f1830eb4cf298e6d475d (patch)
treecffac33c719452aaa9ed95df38aae81ab8d4ca1b /libs/ardour/mute_master.cc
parent18c5d249514f8faa245047a7a5bb607c598221c5 (diff)
provide a real and usable MuteControllable for Routes (so that MIDI can use it)
git-svn-id: svn://localhost/ardour2/branches/3.0@6445 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mute_master.cc')
-rw-r--r--libs/ardour/mute_master.cc37
1 files changed, 3 insertions, 34 deletions
diff --git a/libs/ardour/mute_master.cc b/libs/ardour/mute_master.cc
index 1d0b2dda06..14411580fd 100644
--- a/libs/ardour/mute_master.cc
+++ b/libs/ardour/mute_master.cc
@@ -19,7 +19,9 @@
*/
#include "pbd/enumwriter.h"
+#include "pbd/xml++.h"
+#include "ardour/types.h"
#include "ardour/mute_master.h"
#include "ardour/rc_configuration.h"
@@ -33,13 +35,8 @@ const MuteMaster::MutePoint MuteMaster::AllPoints = MutePoint (MuteMaster::PreFa
MuteMaster::Main);
MuteMaster::MuteMaster (Session& s, const std::string& name)
- : AutomationControl (s, Evoral::Parameter (MuteAutomation), boost::shared_ptr<AutomationList>(), name)
- , _mute_point (MutePoint (0))
+ : _mute_point (MutePoint (0))
{
- // default range for parameter is fine
-
- _automation = new AutomationList (MuteAutomation);
- set_list (boost::shared_ptr<AutomationList>(_automation));
}
void
@@ -69,18 +66,6 @@ MuteMaster::unmute_at (MutePoint mp)
}
}
-void
-MuteMaster::mute (bool yn)
-{
- /* convenience wrapper around AutomationControl method */
-
- if (yn) {
- set_value ((float) 0xffff);
- } else {
- set_value (0.0f);
- }
-}
-
gain_t
MuteMaster::mute_gain_at (MutePoint mp) const
{
@@ -91,22 +76,6 @@ MuteMaster::mute_gain_at (MutePoint mp) const
}
}
-void
-MuteMaster::set_value (float f)
-{
- MutePoint old = _mute_point;
- _mute_point = (MutePoint) (rint (f));
- if (old != _mute_point) {
- MutePointChanged (); // EMIT SIGNAL
- }
-}
-
-float
-MuteMaster::get_value () const
-{
- return (float) _mute_point;
-}
-
int
MuteMaster::set_state (const XMLNode& node, int /*version*/)
{