rem: if (cslots_rep[n]->number_of_channels() < mixslot_repp->number_of_channels()) { mixslot_repp->make_silent(); }
context: void ECA_ENGINE::mix_to_outputs(bool skip_realtime_target_outputs){  for(size_t outputnum = 0; outputnum < outputs_repp->size(); outputnum++) {    if (skip_realtime_target_outputs == true) {      if (csetup_repp->is_realtime_target_output(outputnum) == true) {	ECA_LOG_MSG(ECA_LOGGER::system_objects,		    "(eca-engine) Skipping rt-target output " +		    (*outputs_repp)[outputnum]->label() + ".");	continue;      }    }    int count = 0;    /* FIXME: number_of_channels() may end up allocating memory! */    mixslot_repp->number_of_channels((*outputs_repp)[outputnum]->channels());        for(size_t n = 0; n != chains_repp->size(); n++) {      // --      // if chain is already released, skip      // --      if ((*chains_repp)[n]->connected_output() == -1) {	// --	// skip, if chain is not connected	// --	continue;      }      if ((*chains_repp)[n]->connected_output() == static_cast<int>(outputnum)) {	// --	// output is connected to this chain	// --	if (output_chain_count_rep[outputnum] == 1) {	  // --	  // there's only one output connected to this chain,	  // so we don't need to mix anything	  // --	  (*outputs_repp)[outputnum]->write_buffer(cslots_rep[n]);	  if ((*outputs_repp)[outputnum]->finished() == true) outputs_finished_rep++;	  break;	}	else {	  ++count;	  if (count == 1) {	    // -- 	    // this is the first output connected to this chain	    // --	    if (cslots_rep[n]->number_of_channels() < mixslot_repp->number_of_channels()) {	      mixslot_repp->make_silent();	    }	    mixslot_repp->copy(*cslots_rep[n]);	    mixslot_repp->divide_by(output_chain_count_rep[outputnum]);	  }	  else {	    mixslot_repp->add_with_weight(*cslots_rep[n],					  output_chain_count_rep[outputnum]);	  }	  	  if (count == output_chain_count_rep[outputnum]) {	    (*outputs_repp)[outputnum]->write_buffer(mixslot_repp);	    if ((*outputs_repp)[outputnum]->finished() == true) outputs_finished_rep++;	  }	}      }    }  } }