From 21b1e2e485d9fa954ca742965d000f3273fcb862 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 15:56:21 +0000 Subject: Stricter symbol construction and conversion. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4670 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PatchImpl.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/server/PatchImpl.cpp') diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp index 35badeb6..9b1e1a1f 100644 --- a/src/server/PatchImpl.cpp +++ b/src/server/PatchImpl.cpp @@ -246,13 +246,13 @@ PatchImpl::num_ports_non_rt() const /** Create a port. Not realtime safe. */ PortImpl* -PatchImpl::create_port(BufferFactory& bufs, - const string& name, - PortType type, - LV2_URID buffer_type, - uint32_t buffer_size, - bool is_output, - bool polyphonic) +PatchImpl::create_port(BufferFactory& bufs, + const Raul::Symbol& symbol, + PortType type, + LV2_URID buffer_type, + uint32_t buffer_size, + bool is_output, + bool polyphonic) { if (type == PortType::UNKNOWN) { Raul::error << "[PatchImpl::create_port] Unknown port type " << type.uri() << endl; @@ -263,7 +263,7 @@ PatchImpl::create_port(BufferFactory& bufs, if (type == PortType::CONTROL || type == PortType::CV) value = bufs.forge().make(0.0f); - return new DuplexPort(bufs, this, name, num_ports_non_rt(), polyphonic, _polyphony, + return new DuplexPort(bufs, this, symbol, num_ports_non_rt(), polyphonic, _polyphony, type, buffer_type, value, buffer_size, is_output); } @@ -275,7 +275,7 @@ PatchImpl::create_port(BufferFactory& bufs, * Realtime safe. Preprocessing thread only. */ PatchImpl::Ports::Node* -PatchImpl::remove_port(const string& symbol) +PatchImpl::remove_port(const Raul::Symbol& symbol) { ThreadManager::assert_thread(THREAD_PRE_PROCESS); -- cgit v1.2.1