summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBe <be.0@gmx.com>2025-03-24 23:16:13 -0500
committerBe <be.0@gmx.com>2025-03-24 23:16:13 -0500
commit9dcfea1d7d3349859868597ff9e839228e739d79 (patch)
tree18d67dd5b0f92e7426df5a7aaa34ba552af03236 /src
parent22fd238ed220d1cd0df683841e6beca5efe803ed (diff)
downloadtangara-fw-9dcfea1d7d3349859868597ff9e839228e739d79.tar.gz
DrFlacDecoder: use internal RAM instead of SPIRAM
This drops CPU usage for the audio_dec task by about 15%.
Diffstat (limited to 'src')
-rw-r--r--src/codecs/dr_flac.cpp4
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) {