summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Patch.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-18 19:26:53 +0000
committerDavid Robillard <d@drobilla.net>2006-06-18 19:26:53 +0000
commit36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e (patch)
tree963d5a6d87204fda9d8b1cd91f8810a6582bb41f /src/libs/engine/Patch.h
parent00c8938a79d9e24547420d2a39421bcb7d8cc165 (diff)
downloadingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.tar.gz
ingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.tar.bz2
ingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.zip
Reworked use of Plugin class in engine slightly (more RAII-ey)
git-svn-id: http://svn.drobilla.net/lad/grauph@56 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Patch.h')
-rw-r--r--src/libs/engine/Patch.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libs/engine/Patch.h b/src/libs/engine/Patch.h
index 5f2782d5..201912b5 100644
--- a/src/libs/engine/Patch.h
+++ b/src/libs/engine/Patch.h
@@ -58,8 +58,6 @@ public:
void run(size_t nframes);
- size_t num_ports() const;
-
//void send_creation_messages(ClientInterface* client) const;
void add_to_store();
@@ -94,21 +92,21 @@ public:
void external_ports(Array<Port*>* pa) { _ports = pa; }
Array<Node*>* build_process_order() const;
- inline void build_process_order_recursive(Node* n, Array<Node*>* order) const;
- /** Whether to run this patch's DSP in the audio thread */
+ /** Whether to run this patch's DSP bits in the audio thread */
bool process() const { return _process; }
void process(bool p);
size_t internal_poly() const { return _internal_poly; }
const Plugin* plugin() const { return &_plugin; }
- void plugin(const Plugin* const) { exit(EXIT_FAILURE); }
private:
// Prevent copies (undefined)
Patch(const Patch&);
Patch& operator=(const Patch&);
+
+ inline void build_process_order_recursive(Node* n, Array<Node*>* order) const;
size_t _internal_poly;
Array<Node*>* _process_order; ///< Accessed in audio thread only