From 485e9adfce01b9b4e21dae927fb3b7ed3d5fc83d Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 25 Aug 2023 15:58:54 +1000 Subject: Performance tweaks for smoother tunes - Pin the decoder task to APP_CORE to reduce context switches - Increase sample buffer sizes --- src/audio/audio_converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio/audio_converter.cpp') diff --git a/src/audio/audio_converter.cpp b/src/audio/audio_converter.cpp index c540d821..60d83648 100644 --- a/src/audio/audio_converter.cpp +++ b/src/audio/audio_converter.cpp @@ -24,7 +24,7 @@ static constexpr char kTag[] = "mixer"; static constexpr std::size_t kSourceBufferLength = 8 * 1024; -static constexpr std::size_t kSampleBufferLength = 240 * 2; +static constexpr std::size_t kSampleBufferLength = 240 * 2 * 4; namespace audio { -- cgit v1.2.3