13
0

add some DSP stats to the JACK backend

This commit is contained in:
Paul Davis 2021-06-12 09:20:28 -06:00
parent d8e2f2fcad
commit 8afc994177

View File

@ -979,11 +979,15 @@ JACKAudioBackend::process_thread ()
while (1) { while (1) {
GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0); GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0);
dsp_stats[AudioBackend::DeviceWait].start ();
pframes_t nframes = jack_cycle_wait (_priv_jack); pframes_t nframes = jack_cycle_wait (_priv_jack);
dsp_stats[AudioBackend::DeviceWait].update ();
dsp_stats[AudioBackend::ProcessCallback].start();
if (engine.process_callback (nframes)) { if (engine.process_callback (nframes)) {
return 0; return 0;
} }
dsp_stats[AudioBackend::ProcessCallback].update();
jack_cycle_signal (_priv_jack, 0); jack_cycle_signal (_priv_jack, 0);
} }