summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Node.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-18 15:13:05 +0000
committerDavid Robillard <d@drobilla.net>2007-09-18 15:13:05 +0000
commitcbc7847a12e57176c5bafa9baa007de6865745c7 (patch)
tree0ca368a06c025c3898682b1bfa18fbb048e45b9b /src/libs/engine/Node.hpp
parent33f66f46c1f1e9774e5b59a9637d2bfabd700394 (diff)
downloadingen-cbc7847a12e57176c5bafa9baa007de6865745c7.tar.gz
ingen-cbc7847a12e57176c5bafa9baa007de6865745c7.tar.bz2
ingen-cbc7847a12e57176c5bafa9baa007de6865745c7.zip
Work on dynamic polyphony.
git-svn-id: http://svn.drobilla.net/lad/ingen@720 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Node.hpp')
-rw-r--r--src/libs/engine/Node.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/libs/engine/Node.hpp b/src/libs/engine/Node.hpp
index feb9e9ef..ca495904 100644
--- a/src/libs/engine/Node.hpp
+++ b/src/libs/engine/Node.hpp
@@ -23,7 +23,7 @@
#include "types.hpp"
#include "GraphObject.hpp"
-namespace Raul { template <typename T> class List; }
+namespace Raul { template <typename T> class List; class Maid; }
namespace Ingen {
@@ -61,7 +61,22 @@ public:
virtual void activate() = 0;
virtual void deactivate() = 0;
virtual bool activated() = 0;
+
+ /** Prepare for a new (external) polyphony value.
+ *
+ * Preprocessor thread, poly is actually applied by apply_poly.
+ */
+ virtual void prepare_poly(uint32_t poly) = 0;
+ /** Apply a new polyphony value.
+ *
+ * Audio thread.
+ *
+ * \param poly Must be < the most recent value passed to prepare_poly.
+ * \param maid Any objects no longer needed will be pushed to this
+ */
+ virtual void apply_poly(Raul::Maid& maid, uint32_t poly) = 0;
+
/** Parallelism: Reset flags for start of a new cycle.
*/
virtual void reset_input_ready() = 0;