13
0

Rearrange condition for pure midi plugins

This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-08-03 12:08:01 +02:00
parent 19b82b8a83
commit 946a99f554

View File

@ -447,9 +447,10 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
// "imprecise" matches
if (possible_out == 0) {
if (possible_in == 0) {
if (_has_midi_output && audio_in == 0) {
// special case midi filters & generators
/* skip configurations with no audio output, unless
* the plugin is a midi filter or generator */
if (possible_in == 0 && _has_midi_output) {
if (audio_in == 0) {
FOUNDCFG(possible_out);
break;
}