summaryrefslogtreecommitdiffstats
path: root/src/engine/PatchImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/PatchImpl.cpp')
-rw-r--r--src/engine/PatchImpl.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/engine/PatchImpl.cpp b/src/engine/PatchImpl.cpp
index a9be238f..a0bf166c 100644
--- a/src/engine/PatchImpl.cpp
+++ b/src/engine/PatchImpl.cpp
@@ -40,7 +40,6 @@ namespace Ingen {
using namespace Shared;
-
PatchImpl::PatchImpl(Engine& engine, const Raul::Symbol& symbol, uint32_t poly, PatchImpl* parent, SampleRate srate, uint32_t internal_poly)
: NodeImpl(new PatchPlugin(*engine.world()->uris().get(),
engine.world()->uris()->ingen_Patch.c_str(), "patch", "Ingen Patch"),
@@ -53,7 +52,6 @@ PatchImpl::PatchImpl(Engine& engine, const Raul::Symbol& symbol, uint32_t poly,
assert(internal_poly >= 1);
}
-
PatchImpl::~PatchImpl()
{
assert(!_activated);
@@ -62,7 +60,6 @@ PatchImpl::~PatchImpl()
delete _plugin;
}
-
void
PatchImpl::activate(BufferFactory& bufs)
{
@@ -74,7 +71,6 @@ PatchImpl::activate(BufferFactory& bufs)
assert(_activated);
}
-
void
PatchImpl::deactivate()
{
@@ -91,7 +87,6 @@ PatchImpl::deactivate()
assert(!_activated);
}
-
void
PatchImpl::disable()
{
@@ -104,7 +99,6 @@ PatchImpl::disable()
(*i)->clear_buffers();
}
-
bool
PatchImpl::prepare_internal_poly(BufferFactory& bufs, uint32_t poly)
{
@@ -122,7 +116,6 @@ PatchImpl::prepare_internal_poly(BufferFactory& bufs, uint32_t poly)
return true;
}
-
bool
PatchImpl::apply_internal_poly(ProcessContext& context, BufferFactory& bufs, Raul::Maid& maid, uint32_t poly)
{
@@ -151,7 +144,6 @@ PatchImpl::apply_internal_poly(ProcessContext& context, BufferFactory& bufs, Rau
return true;
}
-
/** Run the patch for the specified number of frames.
*
* Calls all Nodes in (roughly, if parallel) the order _compiled_patch specifies.
@@ -182,7 +174,6 @@ PatchImpl::process(ProcessContext& context)
NodeImpl::post_process(context);
}
-
void
PatchImpl::process_parallel(ProcessContext& context)
{
@@ -203,7 +194,6 @@ PatchImpl::process_parallel(ProcessContext& context)
context.slaves()[i]->whip(cp, i+1, context);
}
-
/* Process ourself until everything is done
* This is analogous to ProcessSlave::_whipped(), but this is the master
* (i.e. what the main Jack process thread calls). Where ProcessSlave
@@ -249,7 +239,6 @@ PatchImpl::process_parallel(ProcessContext& context)
context.slaves()[i]->finish();
}
-
void
PatchImpl::process_single(ProcessContext& context)
{
@@ -257,7 +246,6 @@ PatchImpl::process_single(ProcessContext& context)
(*_compiled_patch)[i].node()->process(context);
}
-
void
PatchImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type, size_t size)
{
@@ -267,10 +255,8 @@ PatchImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type,
(*_compiled_patch)[i].node()->set_buffer_size(context, bufs, type, size);
}
-
// Patch specific stuff
-
/** Add a node.
* Preprocessing thread only.
*/
@@ -286,7 +272,6 @@ PatchImpl::add_node(List<NodeImpl*>::Node* ln)
_nodes.push_back(ln);
}
-
/** Remove a node.
* Preprocessing thread only.
*/
@@ -301,7 +286,6 @@ PatchImpl::remove_node(const Raul::Symbol& symbol)
return NULL;
}
-
void
PatchImpl::add_connection(SharedPtr<ConnectionImpl> c)
{
@@ -309,7 +293,6 @@ PatchImpl::add_connection(SharedPtr<ConnectionImpl> c)
_connections.insert(make_pair(make_pair(c->src_port(), c->dst_port()), c));
}
-
/** Remove a connection.
* Preprocessing thread only.
*/
@@ -328,7 +311,6 @@ PatchImpl::remove_connection(const PortImpl* src_port, const PortImpl* dst_port)
}
}
-
bool
PatchImpl::has_connection(const PortImpl* src_port, const PortImpl* dst_port) const
{
@@ -337,7 +319,6 @@ PatchImpl::has_connection(const PortImpl* src_port, const PortImpl* dst_port) co
return (i != _connections.end());
}
-
uint32_t
PatchImpl::num_ports() const
{
@@ -347,7 +328,6 @@ PatchImpl::num_ports() const
return _input_ports.size() + _output_ports.size();
}
-
/** Create a port. Not realtime safe.
*/
PortImpl*
@@ -364,7 +344,6 @@ PatchImpl::create_port(BufferFactory& bufs, const string& name, PortType type, s
type, Raul::Atom(), buffer_size, is_output);
}
-
/** Remove port from ports list used in pre-processing thread.
*
* Port is not removed from ports array for process thread (which could be
@@ -402,7 +381,6 @@ PatchImpl::remove_port(const string& symbol)
return ret;
}
-
/** Remove all ports from ports list used in pre-processing thread.
*
* Ports are not removed from ports array for process thread (which could be
@@ -419,7 +397,6 @@ PatchImpl::clear_ports()
_output_ports.clear();
}
-
Raul::Array<PortImpl*>*
PatchImpl::build_ports_array() const
{
@@ -438,7 +415,6 @@ PatchImpl::build_ports_array() const
return result;
}
-
/** Find the process order for this Patch.
*
* The process order is a flat list that the patch will execute in order
@@ -487,5 +463,4 @@ PatchImpl::compile() const
return compiled_patch;
}
-
} // namespace Ingen