diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/engine/InternalPlugin.cpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
The great ID refactoring of 2009.
Path is now actually URI (scheme path: for now).
Therefore ingen nodes and such live in the same namespace as ... well, everything.
Including plugins.
Thar be profit, laddies.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/InternalPlugin.cpp')
-rw-r--r-- | src/engine/InternalPlugin.cpp | 9 |
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; |