there is no remote model choice anymore - ordering is determined by the GUI
[ardour.git] / libs / ardour / ardour / amp.h
index bd4c8b1259f7d80bde6b8453e865fa87c1efc357..a85963babebcb04b028879aeab91ac204acdaa25 100644 (file)
@@ -37,7 +37,7 @@ class IO;
  */
 class LIBARDOUR_API Amp : public Processor {
 public:
-       Amp(Session& s, const std::string& display_name, boost::shared_ptr<AutomationControl> control, bool control_midi_also);
+       Amp(Session& s, const std::string& display_name, boost::shared_ptr<GainControl> control, bool control_midi_also);
 
        std::string display_name () const { return _display_name; }
        void set_display_name (const std::string& name) { _display_name = name; }
@@ -69,24 +69,17 @@ public:
        static void apply_simple_gain(AudioBuffer& buf, framecnt_t nframes, gain_t target);
 
        static void declick (BufferSet& bufs, framecnt_t nframes, int dir);
-
-       gain_t         gain () const { return _gain_control->get_value(); }
-
-       void           set_gain (gain_t g, void *src);
-       void           inc_gain (gain_t delta, void *src);
-
        static void update_meters();
 
-
-       boost::shared_ptr<AutomationControl> gain_control() {
+       boost::shared_ptr<GainControl> gain_control() {
                return _gain_control;
        }
 
-       boost::shared_ptr<const AutomationControl> gain_control() const {
+       boost::shared_ptr<const GainControl> gain_control() const {
                return _gain_control;
        }
 
-       std::string value_as_string (boost::shared_ptr<AutomationControl>) const;
+       std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
 
 private:
        bool   _denormal_protection;
@@ -97,7 +90,7 @@ private:
 
        std::string _display_name;
 
-       boost::shared_ptr<AutomationControl> _gain_control;
+       boost::shared_ptr<GainControl> _gain_control;
 
        /** Buffer that we should use for gain automation */
        gain_t* _gain_automation_buffer;