From b87e991a1c2efd716974130a22f589fe1697a6fe Mon Sep 17 00:00:00 2001 From: ayumi Date: Sun, 6 Apr 2025 14:56:47 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20the=20WavPack=E2=80=99s=20output=20buff?= =?UTF-8?q?er=20to=20be=20optionally=20allocated=20in=20IRAM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The decoder does use `memset` on the buffer, but according to Espressif that should be fine. See-Also: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/mem_alloc.html#bit-accessible-memory See-Also: https://esp32.com/viewtopic.php?t=1730#p8056 --- src/codecs/wavpack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codecs/wavpack.cpp b/src/codecs/wavpack.cpp index fa168d32..21865785 100644 --- a/src/codecs/wavpack.cpp +++ b/src/codecs/wavpack.cpp @@ -45,7 +45,7 @@ WavPackDecoder::WavPackDecoder() : input_(), buf_() { buf_ = static_cast( heap_caps_malloc( kBufSize * sizeof(int32_t), - MALLOC_CAP_INTERNAL | MALLOC_CAP_CACHE_ALIGNED + MALLOC_CAP_INTERNAL | MALLOC_CAP_32BIT )); }