update processor in-place mode when pin-mapping changes
[ardour.git] / libs / ardour / panner.cc
index 0713e48fe50fd7d7b486ec954e3f98b5ac90a5b8..c88fbe44f430e1a9f679dfcc84365d611e4e1417 100644 (file)
 
 */
 
-#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"
 
@@ -33,6 +28,7 @@ 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;
@@ -123,3 +119,17 @@ Panner::set_state (XMLNode const &, int)
 {
        return 0;
 }
+
+void
+Panner::freeze ()
+{
+       _frozen++;
+}
+
+void
+Panner::thaw ()
+{
+       if (_frozen > 0.0) {
+               _frozen--;
+       }
+}