enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / panners / stereobalance / panner_balance.cc
index 7c0d7e7ff607ae6d7db5add61267ec9ebdea7ec9..647c92ada3a36f7f31b4bea1528eab66af06eca0 100644 (file)
 
 #include <cmath>
 #include <cerrno>
-#include <fstream>
 #include <cstdlib>
 #include <string>
 #include <cstdio>
 #include <locale.h>
 #include <unistd.h>
 #include <float.h>
-#include <iomanip>
 
 #include <glibmm.h>
 
@@ -54,7 +52,7 @@
 
 #include "panner_balance.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 #include "pbd/mathfix.h"
 
@@ -71,13 +69,13 @@ static PanPluginDescriptor _descriptor = {
        Pannerbalance::factory
 };
 
-extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return &_descriptor; } 
+extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return &_descriptor; }
 
 Pannerbalance::Pannerbalance (boost::shared_ptr<Pannable> p)
        : Panner (p)
 {
        if (!_pannable->has_state()) {
-               _pannable->pan_azimuth_control->set_value (0.5);
+               _pannable->pan_azimuth_control->set_value (0.5, Controllable::NoGroup);
        }
 
        update ();
@@ -104,7 +102,7 @@ Pannerbalance::position () const
 Pannerbalance::set_position (double p)
 {
        if (clamp_position (p)) {
-               _pannable->pan_azimuth_control->set_value (p);
+               _pannable->pan_azimuth_control->set_value (p, Controllable::NoGroup);
        }
 }
 
@@ -298,7 +296,7 @@ Pannerbalance::describe_parameter (Evoral::Parameter p)
 }
 
 string
-Pannerbalance::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Pannerbalance::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        /* DO NOT USE LocaleGuard HERE */
        double val = ac->get_value();