From e77d4fcf31bfdad0b34e184e4743b4750848472c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 May 2012 01:29:18 +0000 Subject: Use more reasonable names for the world's interface and engine (if present). Don't require separate Configuration initialisation from World (simplify API). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4343 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client') diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 59d4c1b4..5cdf5ab2 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -41,8 +41,8 @@ lv2_ui_write(SuilController controller, const NodeModel::Ports& ports = ui->node()->ports(); if (port_index >= ports.size()) { - Raul::error << (Raul::fmt("%1% UI tried to write to invalid port %2%") - % ui->node()->plugin()->uri() % port_index) << endl; + Raul::error(Raul::fmt("%1% UI tried to write to invalid port %2%\n") + % ui->node()->plugin()->uri() % port_index); return; } @@ -56,7 +56,7 @@ lv2_ui_write(SuilController controller, if (*(float*)buffer == port->value().get_float()) return; // do nothing (handle stupid plugin UIs that feed back) - ui->world()->engine()->set_property( + ui->world()->interface()->set_property( port->path(), uris.ingen_value, ui->world()->forge().make(*(float*)buffer)); @@ -65,9 +65,9 @@ lv2_ui_write(SuilController controller, LV2_Atom* atom = (LV2_Atom*)buffer; Raul::Atom val = ui->world()->forge().alloc( atom->size, atom->type, LV2_ATOM_BODY(atom)); - ui->world()->engine()->set_property(port->path(), - uris.ingen_value, - val); + ui->world()->interface()->set_property(port->path(), + uris.ingen_value, + val); } else { Raul::warn(Raul::fmt("Unknown value format %1% from LV2 UI\n") @@ -144,7 +144,7 @@ PluginUI::create(Ingen::Shared::World* world, if (instance) { ret->_instance = instance; } else { - Raul::error << "Failed to instantiate LV2 UI" << endl; + Raul::error("Failed to instantiate LV2 UI\n"); ret.reset(); } -- cgit v1.2.1