rem: THRESHOLD_GATE (void) : rms(false), is_opened(false), is_closed(false) { }
add: THRESHOLD_GATE::THRESHOLD_GATE (CHAIN_OPERATOR::parameter_t threshold_openlevel, CHAIN_OPERATOR::parameter_t threshold_closelevel, bool use_rms) { openlevel = threshold_openlevel / 100.0; closelevel = threshold_closelevel / 100.0; rms = use_rms;  is_opened = is_closed = false;  if (rms) { ECA_LOG_MSG(ECA_LOGGER::info, "(audiogate) Threshold gate created; open threshold " + kvu_numtostr(openlevel * 100) + "%, close threshold " + kvu_numtostr(closelevel * 100) + "%, using RMS volume."); } else { ECA_LOG_MSG(ECA_LOGGER::info, "(audiogate) Threshold gate created; open threshold " + kvu_numtostr(openlevel * 100) + "%, close threshold " + kvu_numtostr(closelevel * 100) + "%, using peak volume."); } }
context:   THRESHOLD_GATE (void)     : rms(false), is_opened(false), is_closed(false) { }