diff options
author | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
commit | 0c9e861caa8b1eed5068942edc35d5f91bac816e (patch) | |
tree | b241856ddf49e1b1192f8ea442d1733d9d31b2f2 /src/server/LV2Node.cpp | |
parent | 8ec295a0f2a40086ed83e8d2ad8ad38c8125bcb4 (diff) | |
download | ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.gz ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.bz2 ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.zip |
Work towards translatable strings and a cleaner log interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Node.cpp')
-rw-r--r-- | src/server/LV2Node.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp index a3d8b104..68a771e8 100644 --- a/src/server/LV2Node.cpp +++ b/src/server/LV2Node.cpp @@ -40,7 +40,6 @@ #include "ProcessContext.hpp" using namespace std; -using namespace Raul; namespace Ingen { namespace Server { @@ -89,7 +88,7 @@ LV2Node::prepare_poly(BufferFactory& bufs, uint32_t poly) lilv_instance_free); if (!_prepared_instances->at(i)) { - error << "Failed to instantiate plugin" << endl; + Raul::error << "Failed to instantiate plugin" << endl; return false; } @@ -164,8 +163,8 @@ LV2Node::instantiate(BufferFactory& bufs) lilv_instance_free); if (!instance(i)) { - error << "Failed to instantiate plugin " << _lv2_plugin->uri() - << " voice " << i << endl; + Raul::error << "Failed to instantiate plugin " << _lv2_plugin->uri() + << " voice " << i << endl; return false; } @@ -178,8 +177,8 @@ LV2Node::instantiate(BufferFactory& bufs) lilv_node_free(work_schedule); - string port_name; - Path port_path; + string port_name; + Raul::Path port_path; PortImpl* port = NULL; bool ret = true; @@ -213,9 +212,9 @@ LV2Node::instantiate(BufferFactory& bufs) // LV2 port symbols are guaranteed to be unique, valid C identifiers port_name = lilv_node_as_string(lilv_port_get_symbol(plug, id)); - if (!Symbol::is_valid(port_name)) { - error << "Plugin " << _lv2_plugin->uri() << " port " << j - << " has illegal symbol `" << port_name << "'" << endl; + if (!Raul::Symbol::is_valid(port_name)) { + Raul::error << "Plugin " << _lv2_plugin->uri() << " port " << j + << " has illegal symbol `" << port_name << "'" << endl; ret = false; break; } @@ -288,7 +287,7 @@ LV2Node::instantiate(BufferFactory& bufs) } if (port_type == PortType::UNKNOWN || direction == UNKNOWN) { - warn << "Unknown type or direction for port `" << port_name << "'" << endl; + Raul::warn << "Unknown type or direction for port `" << port_name << "'" << endl; ret = false; break; } |