From 2db1897709eba0e80677bd09e8444e7320e15120 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Jun 2006 06:17:49 +0000 Subject: Connecting of patch ports internally (seemingly anyway, data not flowing yet) git-svn-id: http://svn.drobilla.net/lad/grauph@61 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/Patch.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/libs/engine/Patch.h') diff --git a/src/libs/engine/Patch.h b/src/libs/engine/Patch.h index edde636e..f0e06368 100644 --- a/src/libs/engine/Patch.h +++ b/src/libs/engine/Patch.h @@ -74,10 +74,9 @@ public: const List& nodes() const { return _nodes; } const List& connections() const { return _connections; } - //void add_bridge_node(ListNode* n) { _bridge_nodes.push_back(n); } - //ListNode* remove_bridge_node(const InternalNode* n); Port* create_port(const string& name, DataType type, size_t buffer_size, bool is_output); - void add_port(ListNode* port) { _patch_ports.push_back(port); } + void add_input(ListNode* port) { _input_ports.push_back(port); } ///< Preprocesser thread + void add_output(ListNode* port) { _output_ports.push_back(port); } ///< Preprocessor thread ListNode* remove_port(const Port* p); void add_connection(ListNode* c) { _connections.push_back(c); } @@ -96,8 +95,6 @@ public: void process(bool p); size_t internal_poly() const { return _internal_poly; } - - const Plugin* plugin() const { return &_plugin; } private: // Prevent copies (undefined) @@ -109,11 +106,10 @@ private: size_t _internal_poly; Array* _process_order; ///< Accessed in audio thread only List _connections; ///< Accessed in audio thread only - List _patch_ports; ///< Accessed in preprocessing thread only + List _input_ports; ///< Accessed in preprocessing thread only + List _output_ports; ///< Accessed in preprocessing thread only List _nodes; ///< Accessed in preprocessing thread only bool _process; - - Plugin _plugin; }; -- cgit v1.2.1