summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBe <be.0@gmx.com>2025-04-14 02:31:11 -0500
committerBe <be.0@gmx.com>2025-04-14 02:31:11 -0500
commit544f5db6e0abab76fa03f6f35613b752dd6f4100 (patch)
tree33033ca98fe61fbc4d95c6ba9b582a4a09f1e574
parent6e13e2ac6ed10bdd275b47853fb6d1b4b63b4549 (diff)
downloadtangara-fw-544f5db6e0abab76fa03f6f35613b752dd6f4100.tar.gz
move audio Decoder buffer to external RAM
to save internal RAM space
-rw-r--r--src/tangara/audio/audio_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tangara/audio/audio_decoder.cpp b/src/tangara/audio/audio_decoder.cpp
index fca7e6da..2306e994 100644
--- a/src/tangara/audio/audio_decoder.cpp
+++ b/src/tangara/audio/audio_decoder.cpp
@@ -70,7 +70,7 @@ Decoder::Decoder(std::shared_ptr<SampleProcessor> processor)
ESP_LOGI(kTag, "allocating codec buffer, %u KiB", kCodecBufferLength / 1024);
codec_buffer_ = {
reinterpret_cast<sample::Sample*>(heap_caps_calloc(
- kCodecBufferLength, sizeof(sample::Sample), MALLOC_CAP_DMA)),
+ kCodecBufferLength, sizeof(sample::Sample), MALLOC_CAP_SPIRAM)),
kCodecBufferLength};
}