rem: for (unsigned int c = 0; c != chains_repp->size(); c++) { if ((*chains_repp)[c]->connected_input() == static_cast<int>(audioslot_sizet)) { if (input_chain_count_rep[audioslot_sizet] == 1) { (*inputs_repp)[audioslot_sizet]->read_buffer(&(cslots_rep[c])); if ((*inputs_repp)[audioslot_sizet]->finished() == false) inputs_not_finished_rep++;
add: for (size_t c = 0; c != chains_repp->size(); c++) { if ((*chains_repp)[c]->connected_input() == static_cast<int>(inputnum)) { if (input_chain_count_rep[inputnum] == 1) {  cslots_rep[c]->length_in_samples(buffersize_rep); (*inputs_repp)[inputnum]->read_buffer(cslots_rep[c]); if ((*inputs_repp)[inputnum]->finished() == false) inputs_not_finished_rep++;
context: void ECA_ENGINE::inputs_to_chains(bool skip_realtime_inputs) {  for(unsigned int audioslot_sizet = 0; audioslot_sizet < inputs_repp->size(); audioslot_sizet++) {    if (skip_realtime_inputs == true) {      if (AUDIO_IO_DEVICE::is_realtime_object((*inputs_repp)[audioslot_sizet]) == true) {	//  std::cerr << "(eca-engine) Skipping rt-input " << (*inputs_repp)[audioslot_sizet]->label() << "." << endl;	continue;      }    }    if (input_chain_count_rep[audioslot_sizet] > 1) {      (*inputs_repp)[audioslot_sizet]->read_buffer(&mixslot_rep);      if ((*inputs_repp)[audioslot_sizet]->finished() == false) inputs_not_finished_rep++;    }    for (unsigned int c = 0; c != chains_repp->size(); c++) {      if ((*chains_repp)[c]->connected_input() == static_cast<int>(audioslot_sizet)) {	if (input_chain_count_rep[audioslot_sizet] == 1) {	  (*inputs_repp)[audioslot_sizet]->read_buffer(&(cslots_rep[c]));	  if ((*inputs_repp)[audioslot_sizet]->finished() == false) inputs_not_finished_rep++;	  break;	}	else {	  cslots_rep[c].operator=(mixslot_rep);	}      }    }  }}