aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r--src/jalv_qt.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index b7ed4b1..d19378c 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -361,9 +361,14 @@ jalv_ui_port_event(Jalv* jalv,
uint32_t protocol,
const void* buffer)
{
- Control* control = (Control*)jalv->ports[port_index].widget;
- if (control) {
- control->setValue(*(const float*)buffer);
+ if (jalv->ui_instance) {
+ suil_instance_port_event(jalv->ui_instance, port_index,
+ buffer_size, protocol, buffer);
+ } else {
+ Control* control = (Control*)jalv->ports[port_index].widget;
+ if (control) {
+ control->setValue(*(const float*)buffer);
+ }
}
}