13
0

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.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-08-04 10:11:21 +02:00
parent 539c062ed2
commit 5691abdf03

View File

@ -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;
}