diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-07-10 15:17:19 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-07-10 15:17:19 +1000 |
| commit | 53798f4a6191b9606ebf8a1dec1b447455081a66 (patch) | |
| tree | a34d1b11b4efb82d4395c627aa464fc9c1383f9f /src/tasks | |
| parent | 686e14794d8b592cd3e434c92e7244f0626a6678 (diff) | |
| download | tangara-fw-53798f4a6191b9606ebf8a1dec1b447455081a66.tar.gz | |
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.
Diffstat (limited to 'src/tasks')
| -rw-r--r-- | src/tasks/tasks.cpp | 4 |
1 files 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<Type::kAudioDecoder>() -> UBaseType_t { - return configMAX_PRIORITIES - 1; + return 15; } template <> auto Priority<Type::kAudioConverter>() -> 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 |
