diff options
| author | Be <be.0@gmx.com> | 2025-03-24 23:16:13 -0500 |
|---|---|---|
| committer | Be <be.0@gmx.com> | 2025-03-24 23:16:13 -0500 |
| commit | 9dcfea1d7d3349859868597ff9e839228e739d79 (patch) | |
| tree | 18d67dd5b0f92e7426df5a7aaa34ba552af03236 | |
| parent | 22fd238ed220d1cd0df683841e6beca5efe803ed (diff) | |
| download | tangara-fw-9dcfea1d7d3349859868597ff9e839228e739d79.tar.gz | |
DrFlacDecoder: use internal RAM instead of SPIRAM
This drops CPU usage for the audio_dec task by about 15%.
| -rw-r--r-- | src/codecs/dr_flac.cpp | 4 |
1 files 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) { |
