*/
#include "pbd/enumwriter.h"
+#include "pbd/xml++.h"
+#include "ardour/types.h"
#include "ardour/mute_master.h"
#include "ardour/rc_configuration.h"
using namespace ARDOUR;
+const MuteMaster::MutePoint MuteMaster::AllPoints = MutePoint (MuteMaster::PreFader|
+ MuteMaster::PostFader|
+ MuteMaster::Listen|
+ 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
}
}
-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
{
}
}
-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)
+MuteMaster::set_state (const XMLNode& node, int /*version*/)
{
const XMLProperty* prop;