summaryrefslogtreecommitdiffstats
path: root/src/engine/InternalPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/InternalPlugin.cpp')
-rw-r--r--src/engine/InternalPlugin.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/InternalPlugin.cpp b/src/engine/InternalPlugin.cpp
index 9f146068..465c6b3f 100644
--- a/src/engine/InternalPlugin.cpp
+++ b/src/engine/InternalPlugin.cpp
@@ -38,13 +38,14 @@ InternalPlugin::instantiate(const string& name,
SampleCount srate = engine.audio_driver()->sample_rate();
SampleCount buffer_size = engine.audio_driver()->buffer_size();
- if (uri() == NS_INTERNALS "Note") {
+ const string uri_str = uri().str();
+ if (uri_str == NS_INTERNALS "Note") {
return new NoteNode(name, polyphonic, parent, srate, buffer_size);
- } else if (uri() == NS_INTERNALS "Trigger") {
+ } else if (uri_str == NS_INTERNALS "Trigger") {
return new TriggerNode(name, polyphonic, parent, srate, buffer_size);
- } else if (uri() == NS_INTERNALS "Controller") {
+ } else if (uri_str == NS_INTERNALS "Controller") {
return new ControllerNode(name, polyphonic, parent, srate, buffer_size);
- } else if (uri() == NS_INTERNALS "Transport") {
+ } else if (uri_str == NS_INTERNALS "Transport") {
return new TransportNode(name, polyphonic, parent, srate, buffer_size);
} else {
return NULL;