summaryrefslogtreecommitdiffstats
path: root/src/server/BlockImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-18 21:36:48 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 21:40:46 -0400
commitbb64f80bb139314a06e0b22fddbea7a330b6e149 (patch)
tree51e78a387bc8f1df6ecff3c1799ae7f0dc3f2bdc /src/server/BlockImpl.hpp
parent01deca45d8aa5fbfff75e204cd248a9dd79ab041 (diff)
downloadingen-bb64f80bb139314a06e0b22fddbea7a330b6e149.tar.gz
ingen-bb64f80bb139314a06e0b22fddbea7a330b6e149.tar.bz2
ingen-bb64f80bb139314a06e0b22fddbea7a330b6e149.zip
Preliminary parameter support workparameters
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r--src/server/BlockImpl.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp
index 47eaa6eb..b2816f7d 100644
--- a/src/server/BlockImpl.hpp
+++ b/src/server/BlockImpl.hpp
@@ -28,6 +28,7 @@
#include "BufferRef.hpp"
#include "NodeImpl.hpp"
+#include "Parameter.hpp"
#include "PluginImpl.hpp"
#include "PortType.hpp"
#include "RunContext.hpp"
@@ -134,6 +135,10 @@ public:
virtual Node* port(uint32_t index) const;
virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; }
+ typedef std::list<Parameter> Parameters;
+ Parameters& parameters() { return _parameters; }
+ const Parameters& parameters() const { return _parameters; }
+
/** Get a port by symbol. */
virtual PortImpl* port_by_symbol(const char* symbol);
@@ -187,6 +192,7 @@ protected:
PluginImpl* _plugin;
Raul::Array<PortImpl*>* _ports; ///< Access in audio thread only
+ Parameters _parameters;
uint32_t _polyphony;
std::set<BlockImpl*> _providers; ///< Blocks connected to this one's input ports
std::set<BlockImpl*> _dependants; ///< Blocks this one's output ports are connected to