aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-22 22:14:32 +0200
committerDavid Robillard <d@drobilla.net>2018-09-22 22:14:43 +0200
commit00ca5d2888fe510cd189c292e9fef16d02676ff5 (patch)
tree79609d4d6a386a445c9f8c85bd7055b84d66932f /src
parenteb95b6f0e129dd185a833be2f55aaa4e7f37f703 (diff)
downloadjalv-00ca5d2888fe510cd189c292e9fef16d02676ff5.tar.gz
jalv-00ca5d2888fe510cd189c292e9fef16d02676ff5.tar.bz2
jalv-00ca5d2888fe510cd189c292e9fef16d02676ff5.zip
Only print initial value for control inputs
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 63167bc..0c5eaeb 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1149,7 +1149,7 @@ main(int argc, char** argv)
/* 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->value_type == jalv->forge.Float) {
+ if (control->type == PORT && control->is_writable) {
struct Port* port = &jalv.ports[control->index];
print_control_value(&jalv, port, port->control);
}