13
0

JACK backend: "fix" RunLoop timing

This commit is contained in:
Paul Davis 2021-06-13 11:11:03 -06:00
parent 3df49bad7d
commit e511cd2cb7

View File

@ -977,12 +977,12 @@ JACKAudioBackend::process_thread ()
AudioEngine::thread_init_callback (this);
while (1) {
TimerRAII ltr (dsp_stats[RunLoop]);
GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0);
dsp_stats[AudioBackend::DeviceWait].start ();
pframes_t nframes = jack_cycle_wait (_priv_jack);
dsp_stats[AudioBackend::DeviceWait].update ();
dsp_stats[RunLoop].start();
dsp_stats[AudioBackend::ProcessCallback].start();
if (engine.process_callback (nframes)) {
@ -991,6 +991,7 @@ JACKAudioBackend::process_thread ()
dsp_stats[AudioBackend::ProcessCallback].update();
jack_cycle_signal (_priv_jack, 0);
dsp_stats[AudioBackend::RunLoop].update ();
}
return 0;