From 9dcfea1d7d3349859868597ff9e839228e739d79 Mon Sep 17 00:00:00 2001 From: Be Date: Mon, 24 Mar 2025 23:16:13 -0500 Subject: DrFlacDecoder: use internal RAM instead of SPIRAM This drops CPU usage for the audio_dec task by about 15%. --- src/codecs/dr_flac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codecs/dr_flac.cpp b/src/codecs/dr_flac.cpp index 939705ad..725ae71e 100644 --- a/src/codecs/dr_flac.cpp +++ b/src/codecs/dr_flac.cpp @@ -21,11 +21,11 @@ namespace codecs { [[maybe_unused]] static const char kTag[] = "flac"; static void* onMalloc(size_t sz, void* pUserData) { - return heap_caps_malloc(sz, MALLOC_CAP_SPIRAM); + return heap_caps_malloc(sz, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); } static void* onRealloc(void* p, size_t sz, void* pUserData) { - return heap_caps_realloc(p, sz, MALLOC_CAP_SPIRAM); + return heap_caps_realloc(p, sz, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); } static void onFree(void* p, void* pUserData) { -- cgit v1.2.3