summaryrefslogtreecommitdiffstats
path: root/src/server/InternalPlugin.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-14 04:23:23 +0000
committerDavid Robillard <d@drobilla.net>2012-08-14 04:23:23 +0000
commit80fee5c311fdbdeda573ec81f59158a5fc87d0a1 (patch)
tree8e7e5a6c9bda32bbe0ae8e8c9f6ab23e44c7c181 /src/server/InternalPlugin.cpp
parent058eaf65642268047a984a5c80d54a1f62a85130 (diff)
downloadingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.gz
ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.bz2
ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.zip
Update for latest Raul.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4687 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InternalPlugin.cpp')
-rw-r--r--src/server/InternalPlugin.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/server/InternalPlugin.cpp b/src/server/InternalPlugin.cpp
index 0f1d380b..db43558c 100644
--- a/src/server/InternalPlugin.cpp
+++ b/src/server/InternalPlugin.cpp
@@ -32,9 +32,9 @@ namespace Server {
using namespace Internals;
-InternalPlugin::InternalPlugin(URIs& uris,
- const std::string& uri,
- const std::string& symbol)
+InternalPlugin::InternalPlugin(URIs& uris,
+ const Raul::URI& uri,
+ const Raul::Symbol& symbol)
: PluginImpl(uris, Plugin::Internal, uri)
, _symbol(symbol)
{
@@ -52,15 +52,13 @@ InternalPlugin::instantiate(BufferFactory& bufs,
const SampleCount srate = engine.driver()->sample_rate();
- const string uri_str = uri().str();
-
- if (uri_str == NS_INTERNALS "Controller") {
+ if (uri() == NS_INTERNALS "Controller") {
return new ControllerNode(this, bufs, symbol, polyphonic, parent, srate);
- } else if (uri_str == NS_INTERNALS "Delay") {
+ } else if (uri() == NS_INTERNALS "Delay") {
return new DelayNode(this, bufs, symbol, polyphonic, parent, srate);
- } else if (uri_str == NS_INTERNALS "Note") {
+ } else if (uri() == NS_INTERNALS "Note") {
return new NoteNode(this, bufs, symbol, polyphonic, parent, srate);
- } else if (uri_str == NS_INTERNALS "Trigger") {
+ } else if (uri() == NS_INTERNALS "Trigger") {
return new TriggerNode(this, bufs, symbol, polyphonic, parent, srate);
} else {
return NULL;