diff options
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r-- | src/server/BlockImpl.hpp | 6 |
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 |