diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-16 17:02:54 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-16 17:02:54 +1100 |
| commit | 19f60e33c4ba7eda86c709a8d73ca5e8ab100952 (patch) | |
| tree | 3181edfa09dc38c5cd52a07bcd3f64dfe05a4439 /src/tasks/tasks.cpp | |
| parent | 0baad11b188e7bac6b968017716186d9da0e492f (diff) | |
| parent | 4509ab8d6e341f7f7d92ac6e9d63ad822fe3441b (diff) | |
| download | tangara-fw-19f60e33c4ba7eda86c709a8d73ca5e8ab100952.tar.gz | |
Merge branch 'main' into seek-support
Diffstat (limited to 'src/tasks/tasks.cpp')
| -rw-r--r-- | src/tasks/tasks.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index d53eface..aa382655 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -39,22 +39,20 @@ auto AllocateStack() -> cpp::span<StackType_t>; // usually written with embedded use cases in mind. template <> auto AllocateStack<Type::kAudioDecoder>() -> cpp::span<StackType_t> { - constexpr std::size_t size = 24 * 1024; + constexpr std::size_t size = 20 * 1024; static StackType_t sStack[size]; return {sStack, size}; } -// LVGL requires only a relatively small stack. However, it can be allocated in -// PSRAM so we give it a bit of headroom for safety. +// LVGL requires only a relatively small stack. Lua's stack is allocated +// separately. template <> auto AllocateStack<Type::kUi>() -> cpp::span<StackType_t> { - constexpr std::size_t size = 16 * 1024; + constexpr std::size_t size = 14 * 1024; static StackType_t sStack[size]; return {sStack, size}; } template <> -// PCM conversion and resampling uses a very small amount of stack. It works -// entirely with PSRAM-allocated buffers, so no real speed gain from allocating -// it internally. +// PCM conversion and resampling uses a very small amount of stack. auto AllocateStack<Type::kAudioConverter>() -> cpp::span<StackType_t> { constexpr std::size_t size = 4 * 1024; static StackType_t sStack[size]; |
