projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bitslot already in use warning
[ardour.git]
/
libs
/
ardour
/
processor.cc
diff --git
a/libs/ardour/processor.cc
b/libs/ardour/processor.cc
index 79384c701e833529d8a094c16f6ec13a57565653..d571f55688f5e0e283c64ab597704dc87efb9485 100644
(file)
--- a/
libs/ardour/processor.cc
+++ b/
libs/ardour/processor.cc
@@
-23,20
+23,12
@@
#include <string>
#include <string>
-
-#include "pbd/failed_constructor.h"
-#include "pbd/enumwriter.h"
#include "pbd/xml++.h"
#include "pbd/xml++.h"
+#include "ardour/automatable.h"
+#include "ardour/chan_count.h"
#include "ardour/processor.h"
#include "ardour/processor.h"
-#include "ardour/plugin.h"
-#include "ardour/port.h"
-#include "ardour/route.h"
-#include "ardour/ladspa_plugin.h"
-#include "ardour/buffer_set.h"
-#include "ardour/send.h"
-#include "ardour/port_insert.h"
-#include "ardour/plugin_insert.h"
+#include "ardour/types.h"
#ifdef WINDOWS_VST_SUPPORT
#include "ardour/windows_vst_plugin.h"
#ifdef WINDOWS_VST_SUPPORT
#include "ardour/windows_vst_plugin.h"
@@
-56,6
+48,8
@@
using namespace std;
using namespace ARDOUR;
using namespace PBD;
using namespace ARDOUR;
using namespace PBD;
+namespace ARDOUR { class Session; }
+
// Always saved as Processor, but may be IOProcessor or Send in legacy sessions
const string Processor::state_node_name = "Processor";
// Always saved as Processor, but may be IOProcessor or Send in legacy sessions
const string Processor::state_node_name = "Processor";
@@
-69,6
+63,7
@@
Processor::Processor(Session& session, const string& name)
, _display_to_user (true)
, _pre_fader (false)
, _ui_pointer (0)
, _display_to_user (true)
, _pre_fader (false)
, _ui_pointer (0)
+ , _owner (0)
{
}
{
}
@@
-275,3
+270,15
@@
Processor::set_ui (void* p)
{
_ui_pointer = p;
}
{
_ui_pointer = p;
}
+
+void
+Processor::set_owner (SessionObject* o)
+{
+ _owner = o;
+}
+
+SessionObject*
+Processor::owner() const
+{
+ return _owner;
+}