Refuse more configs with unmatched midi in if !imprecise
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 4 Aug 2016 11:01:28 +0000 (13:01 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 6 Aug 2016 17:38:09 +0000 (19:38 +0200)
Since MIDI in should be

libs/ardour/luaproc.cc

index 46fc0aef2fdd2ec2395513f1d575d2a826aa15bd..c8e088af55e0445c3bee82729ed81df00c637bcb 100644 (file)
@@ -439,7 +439,7 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
                int possible_midiin = _has_midi_input ? 1 : 0;
                int possible_midiout = _has_midi_output ? 1 : 0;
 
-               if (midi_in > 0 && possible_midiin == 0 && !imprecise) {
+               if (midi_in != possible_midiin && !imprecise) {
                        continue;
                }