*/
-#include "pbd/boost_debug.h"
-
-#include "ardour/audio_buffer.h"
#include "ardour/buffer_set.h"
#include "ardour/debug.h"
#include "ardour/panner.h"
#include "ardour/pannable.h"
-#include "ardour/session.h"
-#include "ardour/utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace std;
using namespace ARDOUR;
Panner::Panner (boost::shared_ptr<Pannable> p)
+ : _frozen (0)
{
// boost_debug_shared_ptr_mark_interesting (this, "panner");
_pannable = p;
}
string
-Panner::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Panner::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
{
return _pannable->value_as_string (ac);
}
{
return 0;
}
+
+void
+Panner::freeze ()
+{
+ _frozen++;
+}
+
+void
+Panner::thaw ()
+{
+ if (_frozen > 0.0) {
+ _frozen--;
+ }
+}