use library function to reset meters

This commit is contained in:
Paul Davis 2021-06-13 12:21:21 -06:00
parent 8d1e999be4
commit 86e00471d9
1 changed files with 1 additions and 11 deletions

View File

@ -80,17 +80,7 @@ DspStatisticsGUI::DspStatisticsGUI ()
void
DspStatisticsGUI::reset_button_clicked ()
{
if (_session) {
for (size_t n = 0; n < Session::NTT; ++n) {
_session->dsp_stats[n].queue_reset ();
}
}
for (size_t n = 0; n < AudioEngine::NTT; ++n) {
AudioEngine::instance()->dsp_stats[n].queue_reset ();
}
for (size_t n = 0; n < AudioBackend::NTT; ++n) {
AudioEngine::instance()->current_backend()->dsp_stats[n].queue_reset ();
}
ARDOUR::reset_performance_meters (_session);
}
void