Added diagnostics to see how often the parameters have been set. Added a somewhat hacky way to avoid doing the parameter updates if not needed, using raw memory comparison.

This commit is contained in:
xenakios
2017-11-14 19:44:13 +02:00
parent 6487880fb3
commit d442e2eaea
3 changed files with 11 additions and 1 deletions

View File

@ -96,7 +96,10 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
e->updateComponent();
if (processor.isRecordingEnabled() != m_rec_enable.getToggleState())
m_rec_enable.setToggleState(processor.isRecordingEnabled(), dontSendNotification);
m_info_label.setText(String(processor.getRecordingPositionPercent()*100.0, 1),dontSendNotification);
if (processor.isRecordingEnabled())
m_info_label.setText(String(processor.getRecordingPositionPercent()*100.0, 1),dontSendNotification);
else
m_info_label.setText(String(processor.m_control->getStretchAudioSource()->m_param_change_count), dontSendNotification);
}
}