- i->get_buffer(nframes).silence (nframes);
- }
-}
-
-/** Set _bundles_connected to those bundles that are connected such that every
- * port on every bundle channel x is connected to port x in _ports.
- */
-void
-IO::check_bundles_connected ()
-{
- std::vector<UserBundleInfo*> new_list;
-
- for (std::vector<UserBundleInfo*>::iterator i = _bundles_connected.begin(); i != _bundles_connected.end(); ++i) {
-
- uint32_t const N = (*i)->bundle->nchannels().n_total();
-
- if (_ports.num_ports() < N) {
- continue;
- }
-
- bool ok = true;
-
- for (uint32_t j = 0; j < N; ++j) {
- /* Every port on bundle channel j must be connected to our input j */
- Bundle::PortList const pl = (*i)->bundle->channel_ports (j);
- for (uint32_t k = 0; k < pl.size(); ++k) {
- if (_ports.port(j)->connected_to (pl[k]) == false) {
- ok = false;
- break;
- }
- }
-
- if (ok == false) {
- break;
- }
- }
-
- if (ok) {
- new_list.push_back (*i);
- } else {
- delete *i;