rem: ectrl.set_default_audio_format_to_selected();
add: ectrl.set_default_audio_format_to_selected_input();
context: int main(int argc, char *argv[]){  struct sigaction es_handler;  es_handler.sa_handler = signal_handler;  sigemptyset(&es_handler.sa_mask);  es_handler.sa_flags = 0;  sigaction(SIGTERM, &es_handler, 0);  sigaction(SIGINT, &es_handler, 0);  sigaction(SIGQUIT, &es_handler, 0);  sigaction(SIGABRT, &es_handler, 0);  parse_command_line(argc,argv);  if (enable_debug)    ecadebug->set_debug_level(ECA_DEBUG::info |			      ECA_DEBUG::module_flow);  else    ecadebug->disable();  try {    ECA_SESSION esession;    ECA_CONTROL ectrl (&esession);//      ectrl.toggle_interactive_mode(true);    ECA_AUDIO_FORMAT aio_params;    ectrl.add_chainsetup("default");    ectrl.add_chain("default");    ectrl.set_buffersize(buffersize);    if (format_string.size() > 0)        ectrl.set_chainsetup_parameter(format_string);    ectrl.add_audio_input(input);    if (ectrl.get_audio_input() == 0) {      std::cerr << "---\nError while opening \"" << input << "\". Exiting...\n";      exit(0);    }    if (format_string.size() == 0) {      ectrl.set_default_audio_format_to_selected();      aio_params = ectrl.default_audio_format();      ectrl.set_chainsetup_parameter("-sr:" + kvu_numtostr(aio_params.samples_per_second()));    }    ectrl.add_audio_output(output);    if (ectrl.get_audio_output() == 0) {      std::cerr << "---\nError while opening \"" << output << "\". Exiting...\n";      exit(0);    }    EFFECT_ANALYZE cop;    if (enable_cumulative_mode == true)      cop.set_parameter(1, 1);    ectrl.add_chain_operator((CHAIN_OPERATOR*)&cop);    ectrl.connect_chainsetup();    if (ectrl.is_connected() == false) {      std::cerr << "---\nError while connecting chainsetup.\n";      exit(0);    }#if defined USE_NCURSES || defined USE_TERMCAP    initscr();    erase();    move(0,0);    refresh();#endif    ectrl.start();    while(true) {      usleep(rate_msec * 1000);#if defined USE_NCURSES || defined USE_TERMCAP      erase();      move(0,0);      refresh();      printw("%s", cop.status().c_str());      refresh();#else      std::cout << cop.status() << std::endl;#endif    }#if defined USE_NCURSES || defined USE_TERMCAP    endwin();#endif  }  catch(ECA_ERROR& e) {    std::cerr << "---\nERROR: [" << e.error_section() << "] : \"" << e.error_message() << "\"\n\n";  }  catch(...) {    std::cerr << "\nCaught an unknown exception.\n";  }  return(0);}