diff options
Diffstat (limited to 'src/libs/engine/PortImpl.hpp')
-rw-r--r-- | src/libs/engine/PortImpl.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/engine/PortImpl.hpp b/src/libs/engine/PortImpl.hpp index ca21bb4c..be96a910 100644 --- a/src/libs/engine/PortImpl.hpp +++ b/src/libs/engine/PortImpl.hpp @@ -26,6 +26,7 @@ #include "GraphObjectImpl.hpp" #include "interface/DataType.hpp" #include "Buffer.hpp" +#include "Context.hpp" namespace Raul { class Maid; class Atom; } @@ -107,6 +108,9 @@ public: void raise_set_by_user_flag() { _set_by_user = true; } + Context::ID context() const { return _context; } + void set_context(Context::ID c) { _context = c; } + protected: PortImpl(NodeImpl* node, const std::string& name, @@ -130,6 +134,7 @@ protected: bool _set_by_user; Sample _last_broadcasted_value; + Context::ID _context; Raul::Array<Buffer*>* _buffers; // Dynamic polyphony |