Commit read-only stack security fix for 64bit processors.
[ardour.git] / libs / ardour / ardour / io.h
index 163ae462f3b5c7c281ccd81e6e085c855a976903..e1ed7aef9501c9aff6a0310d60550f51f64b4e5d 100644 (file)
@@ -36,7 +36,6 @@
 
 #include <ardour/ardour.h>
 #include <ardour/utils.h>
-#include <ardour/state_manager.h>
 #include <ardour/curve.h>
 #include <ardour/types.h>
 #include <ardour/data_type.h>
@@ -59,7 +58,7 @@ class Panner;
  * An IO can contain ports of varying types, making routes/inserts/etc with
  * varied combinations of types (eg MIDI and audio) possible.
  */
-class IO : public PBD::StatefulDestructible, public ARDOUR::StateManager
+class IO : public PBD::StatefulDestructible
 {
 
   public:
@@ -167,19 +166,11 @@ virtual ~IO();
        XMLNode& get_state (void);
        int set_state (const XMLNode&);
 
-       virtual UndoAction get_memento() const;
-
-
        static int  disable_connecting (void);
-
        static int  enable_connecting (void);
-
        static int  disable_ports (void);
-
        static int  enable_ports (void);
-
        static int  disable_panners (void);
-
        static int  reset_panners (void);
        
        static sigc::signal<int> PortsLegal;
@@ -234,16 +225,7 @@ public:
        AutoStyle gain_automation_style () const { return _gain_automation_curve.automation_style(); }
        sigc::signal<void> gain_automation_style_changed;
 
-       static void set_automation_interval (nframes_t frames) {
-               _automation_interval = frames;
-       }
-
-       static nframes_t automation_interval() { 
-               return _automation_interval;
-       }
-
        virtual void transport_stopped (nframes_t now);
-       virtual void automation_snapshot (nframes_t now);
 
        ARDOUR::Curve& gain_automation_curve () { return _gain_automation_curve; }
 
@@ -282,7 +264,9 @@ public:
        Connection*         _output_connection;
        bool                 no_panner_reset;
        XMLNode*             deferred_state;
-       DataType        _default_type;
+       DataType            _default_type;
+       bool                _ignore_gain_on_deliver;
+       
 
        virtual void set_deferred_state() {}
 
@@ -295,7 +279,7 @@ public:
                                   gain_t initial, gain_t target, bool invert_polarity);
 
        struct GainControllable : public PBD::Controllable {
-           GainControllable (IO& i) : io (i) {}
+           GainControllable (std::string name, IO& i) : Controllable (name), io (i) {}
         
            void set_value (float val);
            float get_value (void) const;
@@ -305,17 +289,7 @@ public:
 
        GainControllable _gain_control;
 
-       /* state management */
-
-       Change               restore_state (State&);
-       StateManager::State* state_factory (std::string why) const;
-
-       /* automation */
-
-       nframes_t last_automation_snapshot;
-       static nframes_t _automation_interval;
-
-    AutoState      _gain_automation_state;
+       AutoState      _gain_automation_state;
        AutoStyle      _gain_automation_style;
 
        bool     apply_gain_automation;