X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fpanner.cc;h=c88fbe44f430e1a9f679dfcc84365d611e4e1417;hb=2d098c346aefd8eb2e3507e321e4bd7ff5ce679f;hp=a182f0b99c32ecfda119bcc3f0906f2a21087170;hpb=48de21b1201fdf828c32ab396ac75dc884a96d90;p=ardour.git diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index a182f0b99c..c88fbe44f4 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -17,13 +17,10 @@ */ -#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" @@ -31,13 +28,15 @@ using namespace std; using namespace ARDOUR; Panner::Panner (boost::shared_ptr p) - : _pannable (p) + : _frozen (0) { + // boost_debug_shared_ptr_mark_interesting (this, "panner"); + _pannable = p; } Panner::~Panner () { - DEBUG_TRACE(PBD::DEBUG::Destruction, string_compose ("panner @ %1 destructor, pannable is %2\n", this, _pannable)); + DEBUG_TRACE(PBD::DEBUG::Destruction, string_compose ("panner @ %1 destructor, pannable is %2 @ %3\n", this, _pannable, &_pannable)); } XMLNode& @@ -120,3 +119,17 @@ Panner::set_state (XMLNode const &, int) { return 0; } + +void +Panner::freeze () +{ + _frozen++; +} + +void +Panner::thaw () +{ + if (_frozen > 0.0) { + _frozen--; + } +}