summaryrefslogtreecommitdiff
path: root/libs/ardour/luaproc.cc
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-08-04 10:11:21 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2016-08-06 19:38:09 +0200
commit5691abdf031b8958649f3d6da665be15becdaec8 (patch)
tree048b4724030f560e97cb7fd76d748c3504af5ab2 /libs/ardour/luaproc.cc
parent539c062ed23daf308e650b5d1039384ac5a55666 (diff)
Remove ad-hoc handling of possible_out == 0
Just refuse configurations without any output at all, and let the remaining logic take care of selecting configurations with no audio output if they make sense and there are no better configurations. POLICY CHANGE: configurations with no output might now be considered even if they have audio inputs (e.g. a pure pitch detector without audio passthrough), whereas they were skipped before.
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r--libs/ardour/luaproc.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc
index 09be770b0a..35e39fe4eb 100644
--- a/libs/ardour/luaproc.cc
+++ b/libs/ardour/luaproc.cc
@@ -445,19 +445,8 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
FOUNDCFG_PENALTY(audio_in, preferred_out, -1);
}
- // "imprecise" matches
- if (possible_out == 0) {
- /* 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;
- } else if (imprecise) {
- // TODO hide audio input from plugin
- FOUNDCFG_IMPRECISE (possible_in, possible_out);
- }
- }
+ if (possible_out == 0 && possible_midiout == 0) {
+ /* skip configurations with no output at all */
continue;
}