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.
This commit is contained in:
Bill Peterson 2021-06-30 11:44:14 -05:00 committed by GitHub
parent 92089e0a0f
commit bfca737a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -639,7 +639,7 @@ new_fluid_jack_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func
} }
o = 0; 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++]); err = jack_connect(client, jack_port_name(dev->fx_ports[i]), jack_ports[o++]);