diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-03 12:08:01 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-06 19:38:09 +0200 |
commit | 946a99f554a158d569b2cea5310a1197664dcda5 (patch) | |
tree | d1c5bc05de2bbf03127a2797d16a0880a05e6718 /libs/ardour/luaproc.cc | |
parent | 19b82b8a8301e80d98d86cc96fa53214f55689db (diff) |
Rearrange condition for pure midi plugins
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index e9a188c82c..35f43b5dc1 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -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; } |