Show max # of output for re-configurable I/O plugins

This commit is contained in:
Robin Gareus 2019-10-15 14:52:40 +02:00
parent bcd1391bf7
commit 7030ab064f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -128,13 +128,13 @@ InstrumentSelector::build_instrument_list()
std::string suffix; std::string suffix;
#ifdef MIXBUS #ifdef MIXBUS
uint32_t n_outs = p->n_outputs.n_audio(); uint32_t n_outs = p->max_configurable_ouputs ();
if (n_outs > 2) { if (n_outs > 2) {
suffix = string_compose(_("%1 outs"), n_outs); suffix = string_compose(_("%1 outs"), n_outs);
} }
#else #else
if (p->multichannel_name_ambiguity) { if (p->multichannel_name_ambiguity) {
uint32_t n_outs = p->n_outputs.n_audio(); uint32_t n_outs = p->max_configurable_ouputs ();
if (n_outs > 2) { if (n_outs > 2) {
suffix = string_compose(_("%1 outs"), n_outs); suffix = string_compose(_("%1 outs"), n_outs);
} else if (n_outs == 2) { } else if (n_outs == 2) {