From 443f792cfe8f4ea462588735e57e876097fec13d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 3 Apr 2016 03:06:43 +0200 Subject: NO-OP whitespace --- libs/ardour/sidechain.cc | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'libs/ardour/sidechain.cc') diff --git a/libs/ardour/sidechain.cc b/libs/ardour/sidechain.cc index dec5e1dc1f..449f58b2be 100644 --- a/libs/ardour/sidechain.cc +++ b/libs/ardour/sidechain.cc @@ -37,7 +37,6 @@ using namespace PBD; SideChain::SideChain (Session& s, const std::string& name) : IOProcessor (s, true, false, name) { - } SideChain::~SideChain () @@ -45,9 +44,9 @@ SideChain::~SideChain () } XMLNode& -SideChain::state(bool full) +SideChain::state (bool full) { - XMLNode& node = IOProcessor::state(full); + XMLNode& node = IOProcessor::state (full); node.add_property ("type", "sidechain"); return node; } @@ -56,32 +55,22 @@ SideChain::state(bool full) int SideChain::set_state (const XMLNode& node, int version) { - XMLNodeList nlist = node.children(); - const XMLNode* insert_node = &node; - - for (XMLNodeIterator niter = nlist.begin(); niter != nlist.end(); ++niter) { - if ((*niter)->name() == "IOProcessor") { - insert_node = *niter; - } - } - - IOProcessor::set_state (*insert_node, version); - + IOProcessor::set_state (node, version); return 0; } void SideChain::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool) { - if (_input->n_ports() == ChanCount::ZERO) { + if (_input->n_ports () == ChanCount::ZERO) { // inplace pass-through return; } - if ((!_active && !_pending_active)) { + if (!_active && !_pending_active) { // zero buffers - for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) { - for (uint32_t out = _configured_input.get (*t); out < bufs.count().get (*t); ++out) { + for (DataType::iterator t = DataType::begin (); t != DataType::end (); ++t) { + for (uint32_t out = _configured_input.get (*t); out < bufs.count ().get (*t); ++out) { bufs.get (*t, out).silence (nframes); } } @@ -89,7 +78,7 @@ SideChain::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, p } _input->collect_input (bufs, nframes, _configured_input); - bufs.set_count(_configured_output); + bufs.set_count (_configured_output); _active = _pending_active; } @@ -97,7 +86,7 @@ SideChain::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, p bool SideChain::can_support_io_configuration (const ChanCount& in, ChanCount& out) { - out = in + _input->n_ports(); + out = in + _input->n_ports (); return true; } -- cgit v1.2.3