remove getter for Amp::_apply_automation_gain; reset member to false after use, and...
[ardour.git] / libs / ardour / ardour / gain_control.h
index f7041fff7826f9d7b00ab8ea06c71d9b1c903699..a2644582cef69d20a39e01bb21059432bcfd9344 100644 (file)
@@ -39,26 +39,11 @@ class LIBARDOUR_API GainControl : public SlavableAutomationControl {
        GainControl (Session& session, const Evoral::Parameter &param,
                     boost::shared_ptr<AutomationList> al = boost::shared_ptr<AutomationList>());
 
-       double internal_to_interface (double) const;
-       double interface_to_internal (double) const;
-       double internal_to_user (double) const;
-       double user_to_internal (double) const;
-       std::string get_user_string () const;
-
-       double lower_db;
-       double range_db;
-
-       int set_state (XMLNode const&, int);
-       XMLNode& get_state();
-
        void inc_gain (gain_t);
 
-  private:
-       std::string masters_string;
-       PBD::ScopedConnection vca_loaded_connection;
-
-       void vcas_loaded();
-       void recompute_masters_ratios (double val);
+protected:
+       void post_add_master (boost::shared_ptr<AutomationControl>);
+       bool get_masters_curve_locked (samplepos_t, samplepos_t, float*, samplecnt_t) const;
 };
 
 } /* namespace */