add back some missing logic to can-replicate
git-svn-id: svn://localhost/ardour2/branches/3.0@8743 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eb012ac243
commit
a9d331aa98
@ -621,7 +621,7 @@ PluginInsert::can_support_io_configuration (const ChanCount& in, ChanCount& out)
|
|||||||
// See if replication is possible
|
// See if replication is possible
|
||||||
// We allow replication only for plugins with either zero or 1 inputs and outputs
|
// We allow replication only for plugins with either zero or 1 inputs and outputs
|
||||||
// for every valid data type.
|
// for every valid data type.
|
||||||
uint32_t f = 1;
|
uint32_t f = 0;
|
||||||
bool can_replicate = true;
|
bool can_replicate = true;
|
||||||
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
|
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
|
||||||
// No inputs of this type
|
// No inputs of this type
|
||||||
@ -633,6 +633,18 @@ PluginInsert::can_support_io_configuration (const ChanCount& in, ChanCount& out)
|
|||||||
can_replicate = false;
|
can_replicate = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Potential factor not set yet
|
||||||
|
|
||||||
|
if (f == 0) {
|
||||||
|
f = in.get(*t) / inputs.get(*t);;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Factor for this type does not match another type, can not replicate
|
||||||
|
if (f != (in.get(*t) / inputs.get(*t))) {
|
||||||
|
can_replicate = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (can_replicate) {
|
if (can_replicate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user