mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
JACK backend: "fix" RunLoop timing
This commit is contained in:
parent
3df49bad7d
commit
e511cd2cb7
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue