src/map-file | 2 +- src/modules/module-null-sink.c | 4 ++++ src/modules/module-null-source.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-)
New commits: commit a9e8b37453627c28daa6db0cefa9ad95cba7050a Author: Arun Raghavan <[email protected]> Date: Thu May 10 14:31:36 2018 +0530 map-file: Fix typo while adding pa_thread_make_realtime diff --git a/src/map-file b/src/map-file index 7c1216ea..902ce2fd 100644 --- a/src/map-file +++ b/src/map-file @@ -225,7 +225,7 @@ pa_mainloop_run; pa_mainloop_set_poll_func; pa_mainloop_wakeup; pa_msleep; -pa_thread_make_realtime +pa_thread_make_realtime; pa_operation_cancel; pa_operation_get_state; pa_operation_ref; commit 105a9b6745eed170979823e7002fb16b852e14f4 Author: Arun Raghavan <[email protected]> Date: Fri May 4 19:18:15 2018 +0530 null-sink,null-source: Use realtime scheduling if possible We do this on other sink/source modules, and in general it makes sense to do so here as well. diff --git a/src/modules/module-null-sink.c b/src/modules/module-null-sink.c index 6cbe588d..fdab1121 100644 --- a/src/modules/module-null-sink.c +++ b/src/modules/module-null-sink.c @@ -28,6 +28,7 @@ #include <pulse/rtclock.h> #include <pulse/timeval.h> +#include <pulse/util.h> #include <pulse/xmalloc.h> #include <pulsecore/i18n.h> @@ -206,6 +207,9 @@ static void thread_func(void *userdata) { pa_log_debug("Thread starting up"); + if (u->core->realtime_scheduling) + pa_thread_make_realtime(u->core->realtime_priority); + pa_thread_mq_install(&u->thread_mq); u->timestamp = pa_rtclock_now(); diff --git a/src/modules/module-null-source.c b/src/modules/module-null-source.c index 0e4c8d2f..251d0f52 100644 --- a/src/modules/module-null-source.c +++ b/src/modules/module-null-source.c @@ -29,6 +29,7 @@ #include <pulse/rtclock.h> #include <pulse/timeval.h> +#include <pulse/util.h> #include <pulse/xmalloc.h> #include <pulsecore/core-util.h> @@ -132,6 +133,9 @@ static void thread_func(void *userdata) { pa_log_debug("Thread starting up"); + if (u->core->realtime_scheduling) + pa_thread_make_realtime(u->core->realtime_priority); + pa_thread_mq_install(&u->thread_mq); u->timestamp = pa_rtclock_now(); _______________________________________________ pulseaudio-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits
