From 0032896251d8ddc6c2775495445da8fceffba98e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 5 Sep 2023 09:51:10 +1000 Subject: Move UI task to priority 0 during playback Also other misc task cleanup --- src/audio/audio_converter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/audio/audio_converter.cpp') diff --git a/src/audio/audio_converter.cpp b/src/audio/audio_converter.cpp index 60d83648..474bbd9f 100644 --- a/src/audio/audio_converter.cpp +++ b/src/audio/audio_converter.cpp @@ -23,8 +23,9 @@ static constexpr char kTag[] = "mixer"; -static constexpr std::size_t kSourceBufferLength = 8 * 1024; -static constexpr std::size_t kSampleBufferLength = 240 * 2 * 4; +static constexpr std::size_t kSampleBufferLength = 240 * 2 * 8; +static constexpr std::size_t kSourceBufferLength = + kSampleBufferLength * 2 * sizeof(sample::Sample); namespace audio { @@ -46,7 +47,7 @@ SampleConverter::SampleConverter() kSampleBufferLength, sizeof(sample::Sample), MALLOC_CAP_SPIRAM)), kSampleBufferLength}; - tasks::StartPersistent([&]() { Main(); }); + tasks::StartPersistent([&]() { Main(); }); } SampleConverter::~SampleConverter() { -- cgit v1.2.3