2 Copyright (C) 2006-2016 Paul Davis
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 675 Mass Ave, Cambridge, MA 02139, USA.
19 #ifndef __ardour_gain_control_h__
20 #define __ardour_gain_control_h__
24 #include <boost/shared_ptr.hpp>
26 #include "pbd/controllable.h"
28 #include "evoral/Parameter.hpp"
30 #include "ardour/slavable_automation_control.h"
31 #include "ardour/libardour_visibility.h"
37 class LIBARDOUR_API GainControl : public SlavableAutomationControl {
39 GainControl (Session& session, const Evoral::Parameter ¶m,
40 boost::shared_ptr<AutomationList> al = boost::shared_ptr<AutomationList>());
42 void inc_gain (gain_t);
45 void post_add_master (boost::shared_ptr<AutomationControl>);
46 bool get_masters_curve_locked (samplepos_t, samplepos_t, float*, samplecnt_t) const;
51 #endif /* __ardour_gain_control_h__ */