summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Patch.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-19 02:46:47 +0000
committerDavid Robillard <d@drobilla.net>2007-09-19 02:46:47 +0000
commit49d6f5b2cc495052d6c5ddbb0629e178c9a2cc14 (patch)
tree4b56e8fe9f01b42e269e5423347a7cc0664599ad /src/libs/engine/Patch.hpp
parentcbc7847a12e57176c5bafa9baa007de6865745c7 (diff)
downloadingen-49d6f5b2cc495052d6c5ddbb0629e178c9a2cc14.tar.gz
ingen-49d6f5b2cc495052d6c5ddbb0629e178c9a2cc14.tar.bz2
ingen-49d6f5b2cc495052d6c5ddbb0629e178c9a2cc14.zip
More work on dynamic polyphony.
git-svn-id: http://svn.drobilla.net/lad/ingen@721 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Patch.hpp')
-rw-r--r--src/libs/engine/Patch.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/engine/Patch.hpp b/src/libs/engine/Patch.hpp
index 8d17ee7c..32a02f76 100644
--- a/src/libs/engine/Patch.hpp
+++ b/src/libs/engine/Patch.hpp
@@ -58,6 +58,22 @@ public:
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.
+ *
+ * \param poly Must be < the most recent value passed to prepare_internal_poly.
+ * \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
void add_node(Raul::ListNode<Node*>* tn);