X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpanners%2F1in2out%2Fpanner_1in2out.h;h=912072096bd282806b10714d4404b151e923f5e8;hb=37b1f5017e904005fae6b815b1519b3fa595d8d3;hp=ced467c11bb5fe21429cedc5a2854f9e642ffe1e;hpb=15b5fce90480490455237da917167b0bcb5ce946;p=ardour.git diff --git a/libs/panners/1in2out/panner_1in2out.h b/libs/panners/1in2out/panner_1in2out.h index ced467c11b..912072096b 100644 --- a/libs/panners/1in2out/panner_1in2out.h +++ b/libs/panners/1in2out/panner_1in2out.h @@ -33,6 +33,7 @@ #include "ardour/types.h" #include "ardour/panner.h" + namespace ARDOUR { class Panner1in2out : public Panner @@ -41,8 +42,9 @@ class Panner1in2out : public Panner Panner1in2out (boost::shared_ptr); ~Panner1in2out (); - void set_position (double); - bool clamp_position (double&); + void set_position (double); + bool clamp_position (double&); + std::pair position_range () const; double position() const; @@ -51,19 +53,14 @@ class Panner1in2out : public Panner std::set what_can_be_automated() const; - /* this class just leaves the pan law itself to be defined - by the update(), do_distribute_automated() - methods. derived classes also need a factory method - and a type name. See EqualPowerStereoPanner as an example. - */ - - static Panner* factory (boost::shared_ptr, Speakers&); + static Panner* factory (boost::shared_ptr, boost::shared_ptr); std::string describe_parameter (Evoral::Parameter); + std::string value_as_string (boost::shared_ptr) const; + + XMLNode& get_state (); - XMLNode& state (bool full_state); - XMLNode& get_state (void); - int set_state (const XMLNode&, int version); + void reset (); protected: float left;