Show approximate output duration in info label

This commit is contained in:
xenakios
2018-02-19 17:39:10 +02:00
parent d1cf25782a
commit 0f1742fbbf
2 changed files with 6 additions and 2 deletions

View File

@ -260,8 +260,10 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
infotext += String(processor.getStretchSource()->m_param_change_count);
infotext += " param changes ";
}
infotext += m_last_err + " FFT size " +
String(processor.getStretchSource()->getFFTSize());
infotext += m_last_err + " [FFT size " +
String(processor.getStretchSource()->getFFTSize())+"]";
double outlen = processor.getStretchSource()->getOutputDurationSecondsForRange(processor.getStretchSource()->getPlayRange(), processor.getStretchSource()->getFFTSize());
infotext += " [Output length " + secondsToString2(outlen)+"]";
if (processor.m_abnormal_output_samples > 0)
infotext += " " + String(processor.m_abnormal_output_samples) + " invalid sample values";
if (processor.isNonRealtime())