From 11792ed95dc9b9435045f1830eb4cf298e6d475d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 4 Jan 2010 18:15:29 +0000 Subject: 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 --- libs/ardour/ardour/mute_master.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libs/ardour/ardour/mute_master.h') diff --git a/libs/ardour/ardour/mute_master.h b/libs/ardour/ardour/mute_master.h index afc1037e42..0e3c10b795 100644 --- a/libs/ardour/ardour/mute_master.h +++ b/libs/ardour/ardour/mute_master.h @@ -21,14 +21,14 @@ #define __ardour_mute_master_h__ #include "evoral/Parameter.hpp" -#include "ardour/automation_control.h" -#include "ardour/automation_list.h" +#include "pbd/signals.h" +#include "pbd/stateful.h" namespace ARDOUR { class Session; -class MuteMaster : public AutomationControl +class MuteMaster : public PBD::Stateful { public: enum MutePoint { @@ -57,20 +57,12 @@ class MuteMaster : public AutomationControl void mute_at (MutePoint); void unmute_at (MutePoint); - void mute (bool yn); - - /* Controllable interface */ - - void set_value (float); /* note: float is used as a bitfield of MutePoints */ - float get_value () const; - PBD::Signal0 MutePointChanged; XMLNode& get_state(); int set_state(const XMLNode&, int version); private: - AutomationList* _automation; MutePoint _mute_point; }; -- cgit v1.2.3