projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix MIDI port offsets.
[ardour.git]
/
libs
/
ardour
/
sidechain.cc
diff --git
a/libs/ardour/sidechain.cc
b/libs/ardour/sidechain.cc
index 449f58b2bef3239139dff8f9ac6b0d41524a048d..9ee902e5d6d3076023ec9cfa9164e6524724afe0 100644
(file)
--- a/
libs/ardour/sidechain.cc
+++ b/
libs/ardour/sidechain.cc
@@
-28,7
+28,7
@@
#include "ardour/session.h"
#include "ardour/sidechain.h"
#include "ardour/session.h"
#include "ardour/sidechain.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace ARDOUR;
using namespace PBD;
using namespace ARDOUR;
using namespace PBD;
@@
-41,13
+41,14
@@
SideChain::SideChain (Session& s, const std::string& name)
SideChain::~SideChain ()
{
SideChain::~SideChain ()
{
+ disconnect ();
}
XMLNode&
SideChain::state (bool full)
{
XMLNode& node = IOProcessor::state (full);
}
XMLNode&
SideChain::state (bool full)
{
XMLNode& node = IOProcessor::state (full);
- node.
add
_property ("type", "sidechain");
+ node.
set
_property ("type", "sidechain");
return node;
}
return node;
}
@@
-60,7
+61,7
@@
SideChain::set_state (const XMLNode& node, int version)
}
void
}
void
-SideChain::run (BufferSet& bufs,
framepos_t start_frame, framepos_t end_frame
, pframes_t nframes, bool)
+SideChain::run (BufferSet& bufs,
samplepos_t start_sample, samplepos_t end_sample, double /*speed*/
, pframes_t nframes, bool)
{
if (_input->n_ports () == ChanCount::ZERO) {
// inplace pass-through
{
if (_input->n_ports () == ChanCount::ZERO) {
// inplace pass-through
@@
-93,9
+94,9
@@
SideChain::can_support_io_configuration (const ChanCount& in, ChanCount& out)
bool
SideChain::configure_io (ChanCount in, ChanCount out)
{
bool
SideChain::configure_io (ChanCount in, ChanCount out)
{
- if (out != in + _input->n_ports()) {
- return false;
+ if (out != in + _input->n_ports ()) {
+ /* disabled for now - see PluginInsert::configure_io() */
+ // return false;
}
}
- Processor::configure_io(in, out);
- return true;
+ return Processor::configure_io (in, out);
}
}