diff options
Diffstat (limited to 'src/server/GraphPlugin.hpp')
-rw-r--r-- | src/server/GraphPlugin.hpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/server/GraphPlugin.hpp b/src/server/GraphPlugin.hpp index ef741587..462485ff 100644 --- a/src/server/GraphPlugin.hpp +++ b/src/server/GraphPlugin.hpp @@ -37,14 +37,19 @@ public: const Raul::Symbol& symbol, const std::string& name) : PluginImpl(uris, uris.ingen_Graph.urid, uri) - {} - - BlockImpl* instantiate(BufferFactory& bufs, - const Raul::Symbol& symbol, - bool polyphonic, - GraphImpl* parent, - Engine& engine, - const LilvState* state) override + { + set_property(uris.lv2_symbol, uris.forge.alloc(symbol)); + if (!name.empty()) { + set_property(uris.doap_name, uris.forge.alloc(name)); + } + } + + BlockImpl* instantiate(BufferFactory&, + const Raul::Symbol&, + bool, + GraphImpl*, + Engine&, + const LilvState*) override { return nullptr; } |