Fix AU i/o busses accounting.
This fixes issues for synths with zero audio input, explicit default stereo config and optional busses.
This commit is contained in:
parent
7d6e6424c7
commit
31f7948936
@ -1269,7 +1269,7 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha
|
|||||||
for (vector<pair<int,int> >::const_iterator i = ioc.begin(); i != ioc.end(); ++i) {
|
for (vector<pair<int,int> >::const_iterator i = ioc.begin(); i != ioc.end(); ++i) {
|
||||||
int32_t possible_in = i->first;
|
int32_t possible_in = i->first;
|
||||||
int32_t possible_out = i->second;
|
int32_t possible_out = i->second;
|
||||||
if (possible_in < 1 || possible_out < 1) {
|
if (possible_in < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (uint32_t i = 1; i < input_elements; ++i) {
|
for (uint32_t i = 1; i < input_elements; ++i) {
|
||||||
@ -1286,7 +1286,7 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha
|
|||||||
for (vector<pair<int,int> >::const_iterator i = ioc.begin(); i != ioc.end(); ++i) {
|
for (vector<pair<int,int> >::const_iterator i = ioc.begin(); i != ioc.end(); ++i) {
|
||||||
int32_t possible_in = i->first;
|
int32_t possible_in = i->first;
|
||||||
int32_t possible_out = i->second;
|
int32_t possible_out = i->second;
|
||||||
if (possible_in < 1 || possible_out < 1) {
|
if (possible_out < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (uint32_t i = 1; i < output_elements; ++i) {
|
for (uint32_t i = 1; i < output_elements; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user