rem: 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);
add: mixslot_repp->number_of_channels(max_channels());  cslots_rep.resize(chains_repp->size()); for(size_t n = 0; n < cslots_rep.size(); n++) { cslots_rep[n] = new SAMPLE_BUFFER(buffersize(), max_channels());
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()));}