From 53798f4a6191b9606ebf8a1dec1b447455081a66 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 10 Jul 2024 15:17:19 +1000 Subject: [PATCH] Move audio decoder priorities below bluetooth The previous priority was leading to a nasty consistent stutter, as reading samples from the drain suffer would lead to the decoder immediately unblocking and preempting the SBC encoding. --- src/tasks/tasks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index d3937c68..b713d70b 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -83,11 +83,11 @@ auto Priority() -> UBaseType_t; // highest priority. template <> auto Priority() -> UBaseType_t { - return configMAX_PRIORITIES - 1; + return 15; } template <> auto Priority() -> UBaseType_t { - return configMAX_PRIORITIES - 1; + return 15; } // After audio issues, UI jank is the most noticeable kind of scheduling-induced // slowness that the user is likely to notice or care about. Therefore we place