From 3a776b58ceadbf7c7d9a1ab4f691f18e3306316a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 11 Oct 2018 01:36:49 +0200 Subject: Use new RT-priority API --- libs/ardour/automation_watch.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/automation_watch.cc') diff --git a/libs/ardour/automation_watch.cc b/libs/ardour/automation_watch.cc index 0445d05d8a..ffcafe93a1 100644 --- a/libs/ardour/automation_watch.cc +++ b/libs/ardour/automation_watch.cc @@ -24,6 +24,7 @@ #include "pbd/compose.h" #include "pbd/pthread_utils.h" +#include "ardour/audioengine.h" #include "ardour/automation_control.h" #include "ardour/automation_watch.h" #include "ardour/debug.h" @@ -186,7 +187,7 @@ AutomationWatch::timer () void AutomationWatch::thread () { - pbd_set_thread_priority (pthread_self(), PBD_SCHED_FIFO, -25); + pbd_set_thread_priority (pthread_self(), PBD_SCHED_FIFO, AudioEngine::instance()->client_real_time_priority() - 3); while (_run_thread) { Glib::usleep ((gulong) floor (Config->get_automation_interval_msecs() * 1000)); timer (); -- cgit v1.2.3