- return false;
-}
-
-/* Number of plugin instances required to support a given channel configuration.
- * (private helper)
- */
-int32_t
-PluginInsert::count_for_configuration (ChanCount in, ChanCount /*out*/) const
-{
- if (_plugins.front()->reconfigurable_io()) {
- /* plugin has flexible I/O, so the answer is always 1 */
- /* this could change if we ever decide to replicate AU's */
- return 1;
- }
-
- // FIXME: take 'out' into consideration
-
- ChanCount outputs = _plugins[0]->get_info()->n_outputs;
- ChanCount inputs = _plugins[0]->get_info()->n_inputs;
-
- if (inputs.n_total() == 0) {
- /* instrument plugin, always legal, but throws away any existing streams */
- return 1;
- }
-
- if (inputs.n_total() == 1 && outputs == inputs
- && ((inputs.n_audio() == 0 && in.n_audio() == 0)
- || (inputs.n_midi() == 0 && in.n_midi() == 0))) {
- /* mono plugin, replicate as needed to match in */
- return in.n_total();
- }
-
- if (inputs == in) {
- /* exact match */
- return 1;
- }
+ /* If the plugin has more inputs than we want, we can `hide' some of them
+ by feeding them silence.
+ */