rem: mixslot_rep.add_with_weight(cslots_rep[n], output_chain_count_rep[audioslot_sizet]);
add: mixslot_repp->add_with_weight(*cslots_rep[n], output_chain_count_rep[outputnum]);
context: void ECA_ENGINE::mix_to_outputs(bool skip_realtime_target_outputs) {  for(unsigned int audioslot_sizet = 0; audioslot_sizet < outputs_repp->size(); audioslot_sizet++) {    if (skip_realtime_target_outputs == true) {      if (csetup_repp->is_realtime_target_output(audioslot_sizet) == true) {	//  cerr << "(eca-engine) Skipping rt-target output " << (*outputs_repp)[audioslot_sizet]->label() << "." << endl;	continue;      }    }    int count = 0;    /* FIXME: number_of_channels() may end up allocating memory! */    mixslot_rep.number_of_channels((*outputs_repp)[audioslot_sizet]->channels());        for(unsigned int 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>(audioslot_sizet)) {	// --	// output is connected to this chain	// --	if (output_chain_count_rep[audioslot_sizet] == 1) {	  // --	  // there's only one output connected to this chain,	  // so we don't need to mix anything	  // --	  (*outputs_repp)[audioslot_sizet]->write_buffer(&(cslots_rep[n]));	  if ((*outputs_repp)[audioslot_sizet]->finished() == true) outputs_finished_rep++;	  break;	}	else {	  ++count;	  if (count == 1) {	    // -- 	    // this is the first output connected to this chain	    // --	    mixslot_rep.copy(cslots_rep[n]);	    mixslot_rep.divide_by(output_chain_count_rep[audioslot_sizet]);	  }	  else {	    mixslot_rep.add_with_weight(cslots_rep[n],					output_chain_count_rep[audioslot_sizet]);	  }	  	  if (count == output_chain_count_rep[audioslot_sizet]) {	    (*outputs_repp)[audioslot_sizet]->write_buffer(&mixslot_rep);	    if ((*outputs_repp)[audioslot_sizet]->finished() == true) outputs_finished_rep++;	  }	}      }    }  } }