aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-27 14:12:00 -0400
committerDavid Robillard <d@drobilla.net>2022-05-27 14:12:00 -0400
commitdef291b51213a04bfd7c81aea14ae7ad1c30e8ef (patch)
tree10b9fe47996f161062d26f05cc37b6b75532f3d5
parentda4b42a47a4f2175b7ab5793a0a8fd66c2d940ff (diff)
downloadjalv-def291b51213a04bfd7c81aea14ae7ad1c30e8ef.tar.gz
jalv-def291b51213a04bfd7c81aea14ae7ad1c30e8ef.tar.bz2
jalv-def291b51213a04bfd7c81aea14ae7ad1c30e8ef.zip
Flush stdout after printing control values
Although the stdout of Jalv is not really designed/suitable for machine control, this at least allows parent processes to get new control values immediately as they are initialized or changed.
-rw-r--r--src/jalv_console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c
index 117fb90..6b54b28 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -151,6 +151,8 @@ jalv_print_controls(Jalv* jalv, bool writable, bool readable)
printf("%s = %f\n", lilv_node_as_string(control->symbol), port->control);
}
}
+
+ fflush(stdout);
}
static int