Use shared_ptr for Port in the AudioEngine; improves thread-safety of the audio engin...
[ardour.git] / libs / ardour / ardour / pan_controllable.h
index 19315e3e1e464e0302c4cd3fe131bb1e778b59d0..be0c9260c07f642f58cb7a4bc74edcd3021e0a49 100644 (file)
@@ -34,22 +34,21 @@ namespace ARDOUR {
 class Session;
 class Pannable;
 
-class PanControllable : public AutomationControl 
+class PanControllable : public AutomationControl
 {
-  public:
-        PanControllable (Session& s, std::string name, Pannable* o, Evoral::Parameter param)
-                : AutomationControl (s, param, boost::shared_ptr<AutomationList>(new AutomationList(param)), name)
-                , owner (o)
-        {}
-        
-        double lower () const;
-        void set_value (double);
-
-  private:
-        
-        Pannable* owner;
+public:
+       PanControllable (Session& s, std::string name, Pannable* o, Evoral::Parameter param)
+               : AutomationControl (s, param, boost::shared_ptr<AutomationList>(new AutomationList(param)), name)
+               , owner (o)
+       {}
+
+       double lower () const;
+       void set_value (double);
+
+private:
+       Pannable* owner;
 };
 
-} // namespace 
+} // namespace
 
 #endif /* __libardour_pan_controllable_h__ */