From 3593abd69807674d9949134f1ad2b7f5a9f69dc2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Sep 2008 22:04:26 +0000 Subject: Merge weird split set_port_value / set_port_value_immediately API (whether a command is queued or 'immediate' is a property of the engine interface, really). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1532 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/Port.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/libs/gui/Port.cpp') diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index ab574f88..fd35ff90 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -122,11 +122,13 @@ Port::activity() void Port::set_control(float value, bool signal) { - if (_port_model->type() != DataType::CONTROL && _port_model->type() != DataType::AUDIO) - return; - - if (signal) - App::instance().engine()->set_port_value_immediate(_port_model->path(), Atom(value)); + if (signal) { + if (_port_model->type() == DataType::CONTROL) { + App::instance().engine()->set_port_value(_port_model->path(), Atom(value)); + } else if (_port_model->type() == DataType::EVENT) { + cout << "EVENT CONTROL" << endl; + } + } FlowCanvas::Port::set_control(value); } -- cgit v1.2.1