summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/ControlPanel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-28 22:04:26 +0000
committerDavid Robillard <d@drobilla.net>2008-09-28 22:04:26 +0000
commit3593abd69807674d9949134f1ad2b7f5a9f69dc2 (patch)
treebe81356499f0835a0955deb690b966d6e1a1914b /src/libs/gui/ControlPanel.cpp
parent97c3b4ba12052b47ec41dc6aded5f1fc84e67c8f (diff)
downloadingen-3593abd69807674d9949134f1ad2b7f5a9f69dc2.tar.gz
ingen-3593abd69807674d9949134f1ad2b7f5a9f69dc2.tar.bz2
ingen-3593abd69807674d9949134f1ad2b7f5a9f69dc2.zip
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
Diffstat (limited to 'src/libs/gui/ControlPanel.cpp')
-rw-r--r--src/libs/gui/ControlPanel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libs/gui/ControlPanel.cpp b/src/libs/gui/ControlPanel.cpp
index 0e637721..7da07dbb 100644
--- a/src/libs/gui/ControlPanel.cpp
+++ b/src/libs/gui/ControlPanel.cpp
@@ -226,16 +226,14 @@ void
ControlPanel::value_changed(SharedPtr<PortModel> port, float val)
{
if (_callback_enabled) {
-
if (_all_voices_radio->get_active()) {
- App::instance().engine()->set_port_value_immediate(port->path(), Atom(val));
+ App::instance().engine()->set_port_value(port->path(), Atom(val));
port->value(val);
} else {
int voice = _voice_spinbutton->get_value_as_int() - 1;
- App::instance().engine()->set_voice_value_immediate(port->path(), voice, Atom(val));
+ App::instance().engine()->set_voice_value(port->path(), voice, Atom(val));
port->value(val);
}
-
}
}