summaryrefslogtreecommitdiffstats
path: root/src/engine/PatchImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/PatchImpl.hpp')
-rw-r--r--src/engine/PatchImpl.hpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/engine/PatchImpl.hpp b/src/engine/PatchImpl.hpp
index 17600c4c..3f05e6df 100644
--- a/src/engine/PatchImpl.hpp
+++ b/src/engine/PatchImpl.hpp
@@ -1,15 +1,15 @@
/* This file is part of Ingen.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
+ *
* Ingen is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
- *
+ *
* Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@@ -61,16 +61,16 @@ public:
void deactivate();
void process(ProcessContext& context);
-
+
void set_buffer_size(size_t size);
-
+
/** Prepare for a new (internal) polyphony value.
*
* Preprocessor thread, poly is actually applied by apply_internal_poly.
* \return true on success.
*/
bool prepare_internal_poly(uint32_t poly);
-
+
/** Apply a new (internal) polyphony value.
*
* Audio thread.
@@ -79,42 +79,42 @@ public:
* \param maid Any objects no longer needed will be pushed to this
*/
bool apply_internal_poly(Raul::Maid& maid, uint32_t poly);
-
+
// Patch specific stuff not inherited from Node
-
+
typedef Raul::List<NodeImpl*> Nodes;
-
+
void add_node(Nodes::Node* tn);
Nodes::Node* remove_node(const std::string& name);
Nodes& nodes() { return _nodes; }
Connections& connections() { return _connections; }
-
+
const Nodes& nodes() const { return _nodes; }
const Connections& connections() const { return _connections; }
-
+
uint32_t num_ports() const;
-
+
PortImpl* create_port(const std::string& name, Shared::DataType type, size_t buffer_size, bool is_output);
void add_input(Raul::List<PortImpl*>::Node* port) { _input_ports.push_back(port); } ///< Preprocesser thread
void add_output(Raul::List<PortImpl*>::Node* port) { _output_ports.push_back(port); } ///< Preprocessor thread
Raul::List<PortImpl*>::Node* remove_port(const std::string& name);
void clear_ports();
-
+
void add_connection(Connections::Node* c) { _connections.push_back(c); }
Connections::Node* remove_connection(const PortImpl* src_port, const PortImpl* dst_port);
-
+
bool has_connection(const PortImpl* src_port, const PortImpl* dst_port) const;
-
+
CompiledPatch* compiled_patch() { return _compiled_patch; }
void compiled_patch(CompiledPatch* cp) { _compiled_patch = cp; }
-
+
Raul::Array<PortImpl*>* external_ports() { return _ports; }
void external_ports(Raul::Array<PortImpl*>* pa) { _ports = pa; }
CompiledPatch* compile() const;
Raul::Array<PortImpl*>* build_ports_array() const;
-
+
/** Whether to run this patch's DSP bits in the audio thread */
bool enabled() const { return _process; }
void enable() { _process = true; }
@@ -148,7 +148,7 @@ PatchImpl::compile_recursive(NodeImpl* n, CompiledPatch* output) const
n->traversed(true);
assert(output != NULL);
-
+
for (Raul::List<NodeImpl*>::iterator i = n->providers()->begin(); i != n->providers()->end(); ++i)
if ( ! (*i)->traversed() )
compile_recursive((*i), output);