rem: while(cslots_rep.size() < chains_repp->size()) cslots_rep.push_back(SAMPLE_BUFFER(buffersize_rep, max_channels_rep, csetup_repp->sample_rate()));
add: for (unsigned int c = 0; c != chains_repp->size(); c++) { int inch = (*inputs_repp)[(*chains_repp)[c]->connected_input()]->channels(); int outch = (*outputs_repp)[(*chains_repp)[c]->connected_output()]->channels(); (*chains_repp)[c]->init(cslots_rep[c], inch, outch); }
context: void ECA_ENGINE::init_chains(void) {  chains_repp = &(csetup_repp->chains);  if (chains_repp == 0 ||      chains_repp->size() == 0) {    std::cerr << "(eca-processor) Engine startup aborted, session in corrupted state: no chains!";    std::cerr << " Exiting..." << std::endl;    exit(-1);  }  while(cslots_rep.size() < chains_repp->size()) cslots_rep.push_back(SAMPLE_BUFFER(buffersize_rep, max_channels_rep, csetup_repp->sample_rate()));}