s = bundles.size();
} else {
for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
- s += (*i)->bundle->nchannels().get (_matrix->type());
+ s += _matrix->count_of_our_type ((*i)->bundle->nchannels());
}
}
if (_matrix->show_only_bundles()) {
p += 1;
} else {
- p += (*i)->bundle->nchannels().get (_matrix->type());
+ p += _matrix->count_of_our_type ((*i)->bundle->nchannels());
}
}
} else {
- uint32_t const s = (*j)->bundle->nchannels().get (_matrix->type());
+ uint32_t const s = _matrix->count_of_our_type ((*j)->bundle->nchannels());
if (p < s) {
return ARDOUR::BundleChannel ((*j)->bundle, p);
} else {