aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-17 19:02:01 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:07:35 -0500
commitf80653bc457aef835cd49ad68a5b7fa53db262f9 (patch)
treeae35cea69d3ce5137223b5d5e0b63ec5a207bdb8 /src/jalv.c
parent30ec5250ca9963ecbab37a6103fdbd2ea0fcdc90 (diff)
downloadjalv-f80653bc457aef835cd49ad68a5b7fa53db262f9.tar.gz
jalv-f80653bc457aef835cd49ad68a5b7fa53db262f9.tar.bz2
jalv-f80653bc457aef835cd49ad68a5b7fa53db262f9.zip
Move control port printing to console client
This functionality was spammed across the codebase and kind of half-implemented for graphical clients, but only really makes sense for the console one. So, isolate it there.
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 88115dd..5ed7803 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -536,9 +536,6 @@ jalv_update(Jalv* jalv)
if (header.type == CONTROL_PORT_CHANGE) {
const JalvControlChange* const msg = (const JalvControlChange*)body;
jalv_frontend_port_event(jalv, msg->port_index, sizeof(float), 0, body);
- if (jalv->opts.print_controls) {
- jalv_print_control(jalv, &jalv->ports[msg->port_index], *(float*)body);
- }
} else if (header.type == EVENT_TRANSFER) {
const JalvEventTransfer* const msg = (const JalvEventTransfer*)body;
jalv_dump_atom(jalv->dumper, stdout, "Plugin => UI", &msg->atom, 35);
@@ -1070,15 +1067,6 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv)
jalv_backend_activate_port(jalv, i);
}
- // Print initial control values
- for (size_t i = 0; i < jalv->controls.n_controls; ++i) {
- ControlID* control = jalv->controls.controls[i];
- if (control->type == PORT && control->is_writable) {
- const JalvPort* const port = &jalv->ports[control->index];
- jalv_print_control(jalv, port, jalv->controls_buf[control->index]);
- }
- }
-
// Discover UI
jalv->has_ui = jalv_frontend_discover(jalv);
return 0;