From bfca737a7caf956b2df7d903e31da9b1f5ae836c Mon Sep 17 00:00:00 2001 From: Bill Peterson Date: Wed, 30 Jun 2021 11:44:14 -0500 Subject: [PATCH] autoconnect all available effects ports (#927) Step through all available effects outputs and connect them to jack inputs, and wrap around if there are fewer input ports than effects outputs. --- src/drivers/fluid_jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/fluid_jack.c b/src/drivers/fluid_jack.c index 76a55f67..9592b7d5 100644 --- a/src/drivers/fluid_jack.c +++ b/src/drivers/fluid_jack.c @@ -639,7 +639,7 @@ new_fluid_jack_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func } o = 0; - for(i = 0; jack_ports[i] && i < 2 * dev->num_fx_ports; ++i) + for(i = 0; i < 2 * dev->num_fx_ports; ++i) { err = jack_connect(client, jack_port_name(dev->fx_ports[i]), jack_ports[o++]);