rem: mvprintw(0, 0, "******************************************************\n"); mvprintw(1, 0, "* ecasignalview v%s (C) 1999-2005 Kai Vehmanen  \n", ecatools_signalview_version.c_str()); mvprintw(2, 0, "******************************************************\n\n");  mvprintw(4, 0, "input=\"%s\"\noutput=\"%s\"\naudio_format=\"%s\", refresh_rate_ms='%ld', buffersize='%ld'\n", ecasv_input.c_str(), ecasv_output.c_str(), ecasv_format_string.c_str(), ecasv_rate_msec, ecasv_buffersize);
add: mvprintw(r++, 2, "input=\"%s\", output=\"%s\"", ecasv_input.c_str(),ecasv_output.c_str()); mvprintw(r++, 2, "audio format=\"%s\"",ecasv_format_string.c_str()); double avg_length = (double)ecasv_rate_msec * avg_peak_buffer_sz; mvprintw(r++, 2, "refresh rate=%ld (msec), buffer size='%ld', " "avg-length=%.0f (msec)", ecasv_rate_msec, ecasv_buffersize, avg_length); const char* bar="------------------------------------------------------------------------------\n"; mvprintw(r++, 0, bar); mvprintw(r, 0, "channel"); if (ecasv_log_display_mode) mvprintw(r++,38, "%s avg-peak dB  max-peak dB  clipped\n", ecasv_bar_buffer); else mvprintw(r++,38, "%s  avg-peak      max-peak   clipped\n", ecasv_bar_buffer); mvprintw(r++, 0, bar);
context: void ecasv_output_init(void){#ifdef ECASV_USE_CURSES    initscr();    erase();    mvprintw(0, 0, "******************************************************\n");    mvprintw(1, 0, "* ecasignalview v%s (C) 1999-2005 Kai Vehmanen  \n", ecatools_signalview_version.c_str());    mvprintw(2, 0, "******************************************************\n\n");    mvprintw(4, 0, "input=\"%s\"\noutput=\"%s\"\naudio_format=\"%s\", refresh_rate_ms='%ld', buffersize='%ld'\n", 	     ecasv_input.c_str(), ecasv_output.c_str(), ecasv_format_string.c_str(), ecasv_rate_msec, ecasv_buffersize);    memset(ecasv_bar_buffer, ' ', ecasv_bar_length_const - 4);    ecasv_bar_buffer[ecasv_bar_length_const - 4] = 0;    mvprintw(8, 0, "channel-# %s| max-peak  clipped-samples\n", ecasv_bar_buffer);    mvprintw(9, 0, "----------------------------------------------------------------\n");    move(12, 0);    refresh();#endif}