projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
another TLSF vs realloc-pool shootout
[ardour.git]
/
libs
/
ardour
/
panner.cc
diff --git
a/libs/ardour/panner.cc
b/libs/ardour/panner.cc
index 0713e48fe50fd7d7b486ec954e3f98b5ac90a5b8..59e4e2e977952841f98d7d68601899483597f184 100644
(file)
--- a/
libs/ardour/panner.cc
+++ b/
libs/ardour/panner.cc
@@
-17,22
+17,18
@@
*/
*/
-#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/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)
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;
{
// boost_debug_shared_ptr_mark_interesting (this, "panner");
_pannable = p;
@@
-113,7
+109,7
@@
Panner::describe_parameter (Evoral::Parameter p)
}
string
}
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 _pannable->value_as_string (ac);
}
@@
-123,3
+119,17
@@
Panner::set_state (XMLNode const &, int)
{
return 0;
}
{
return 0;
}
+
+void
+Panner::freeze ()
+{
+ _frozen++;
+}
+
+void
+Panner::thaw ()
+{
+ if (_frozen > 0.0) {
+ _frozen--;
+ }
+}