aboutsummaryrefslogtreecommitdiffstats
path: root/src/portaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/portaudio.c')
-rw-r--r--src/portaudio.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/portaudio.c b/src/portaudio.c
index f9283dd..bfc1e2d 100644
--- a/src/portaudio.c
+++ b/src/portaudio.c
@@ -196,11 +196,8 @@ void
jalv_backend_activate_port(Jalv* jalv, uint32_t port_index)
{
struct Port* const port = &jalv->ports[port_index];
- switch (port->type) {
- case TYPE_CONTROL:
+
+ if (port->type == TYPE_CONTROL) {
lilv_instance_connect_port(jalv->instance, port_index, &port->control);
- break;
- default:
- break;
}
}