mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
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:
parent
92089e0a0f
commit
bfca737a7c
1 changed files with 1 additions and 1 deletions
|
@ -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++]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue